I'm new to mysql, so im probably just not aware of how to properly set something like this up.
Basically each row in my table is a different food. I have columns for basic things like description...
But, I have a "ingredients" array, and "how much" array, in an array.
Basically on my end I can go ingredientsArray[0] howMuch[0] to display the ingredient and how much of it.
So, Id like to save both of these arrays in a cell for the row of the food.
I heard I could serialize the array, and save it. But i need it to be searchable.
(also, there is no set limit to how many ingredients. so i cant like have a column for each thats why im going the array route)
edit: 1 more thing incase this might help...howMuch will never be anything other than an int 0 1 2 3 4 5 6 7 8 9
What is the best way to go about this?
I'm doing my programming in AS3, and usng AMFPHP to connect to Mysql