Is adding catagories to your site hard?

Discussion in 'PHP' started by Ninjasoft, Oct 25, 2008.

  1. #1
    I have an image uploading script, that has the option to enter an image and soon a background image, but there are currently no categories and its getting a wee bit messy, could someone point me to a tutorial/tell me how i would go about adding categories to my php image script? (the script itself is fairly simple)

    Im assuming it has to do with me adding something to my database, and php script somewhere

    thanks.
     
    Ninjasoft, Oct 25, 2008 IP
  2. Tarkan

    Tarkan Peon

    Messages:
    491
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If it's an uploading script, you can either work with filesystem or database system.

    Using a database you can create a category table, and then have each uploaded image become some data in a "images" table and tie them to a category ID. Then you have a php script connect to these two tables, and sort data based on the category requested such as a GET in the HTTP: http://example.com/index.php?getCat=5
     
    Tarkan, Oct 25, 2008 IP
  3. Ninjasoft

    Ninjasoft Peon

    Messages:
    338
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks for the reply man!
    hmm.. that seems to have gone over my head a bit, im not great at coding you see, but i'm egor to learn more!

    do you know of any tutorials for this kinda thing, i don't wana take up your time trying to explain it to me, it seems like it would take a while to type an explination, i would need like sample codes and thinngs.

    thanks again for the responce!
     
    Ninjasoft, Oct 25, 2008 IP
  4. Tarkan

    Tarkan Peon

    Messages:
    491
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I would start with pixel2life.com!
     
    Tarkan, Oct 25, 2008 IP