Php Form to edit another page

Discussion in 'PHP' started by Riots, Jul 8, 2008.

  1. #1
    Hi all. I didnt know how to title this thats the best for what I could come up with. So here the deal. I just created this site Graphilthy Clothing and it has certain set sizes I added in. Is it possible to use some kind of back end that I can choose which sizes to display. Like this sample I made HERE For example I check all the boxes for all sizes available and as sizes run out I can uncheck the box and have it not display that size. or make it display out of stock? any ideas or where I can find info on how to do something like this?
     
    Riots, Jul 8, 2008 IP
  2. Altari

    Altari Peon

    Messages:
    188
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You'd need some kind of database set up. It really wouldn't be too hard to implement.

    table : t_shirts
    - t_shirt_id
    - t_shirt_name

    table : sizes
    - size_id
    - size_name

    table : t_shirt_sizes
    - t_shirt_id
    - size_id

    From there, you would pull the information to display via database queries. If no sizes were available for a "t_shirt_id" it could display "Temporary Out of Stock" or whatever you wanted.

    If you need any help on it, feel free to PM or get me via the IMs listed in my profile.
     
    Altari, Jul 8, 2008 IP