jpony
07-13-2007, 11:47 PM
Hey there!
I'm trying to learn PHP so i've set up a little challenge for myself.
I want to create a table of items. Let's say food products. Each food product will have some attributes... how about the "meal" (4 options: breakfast, lunch, snack, dinner), ingredients (comma separated values), origin (western, Chinese, etc.), and the name of the item (cookie, etc.).
I've figured out how to create items in a table... now I need to figure out how to search.
Is it possible to search for some attributes, but not all?
Lets say I wanted a desert with chocolate in it. Can that be done?
Thank you so much for your help!
Cheers,
I'm trying to learn PHP so i've set up a little challenge for myself.
I want to create a table of items. Let's say food products. Each food product will have some attributes... how about the "meal" (4 options: breakfast, lunch, snack, dinner), ingredients (comma separated values), origin (western, Chinese, etc.), and the name of the item (cookie, etc.).
I've figured out how to create items in a table... now I need to figure out how to search.
Is it possible to search for some attributes, but not all?
Lets say I wanted a desert with chocolate in it. Can that be done?
Thank you so much for your help!
Cheers,