SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: mysql help

  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mysql help

    I am working on a template site. I want to store my date in a mysql data base but i dont know how to do it. I made something but it only loads the same info over and over again. heres a link to the page. I want to have each template screenshot and the links loaded from mysql for each template. http://www.aesepia.com/db/templates.php
    How would I do this, or is there a php script to do this already out there?
    Like I said, I tried but all that i saw on my output page was the same template over and over again.

  2. #2
    SitePoint Guru Majglow's Avatar
    Join Date
    Aug 1999
    Location
    B-Town
    Posts
    645
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hello,

    Actually, I wouldn't even use a mysql database, you don't need to.

    Just number each template, and then name the screenshots <number>.jpg and the zips <number>.zip.

    then on the main page, you can links to template.php?id=<number>, then on template.php, you say:

    print('<img src="http://image/base/directory/url/' . $id . '.jpg">');

    and the same for the url...

    Otherwise, I'm pratically sure that there is already a good script for that, check out http://www.hotscripts.com/PHP/Scripts_and_Programs/
    Ohai!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •