Hi,
I have a MySQL database which looks like this:
I need to loop through each record in the database and then populate a select element with the different dressings.
For example:
For ham_and_cheese, it would get the select element with the id "ham_and_cheese_dressings" and then the different options in that select would be "Mayonnaise", "Salad Cream", "Chutney" and "No Dressing".
I'm not very familiar with getting MySQL data and displaying it client side, how would I go about doing this?
Hope this is of use, Rob.
I have a MySQL database which looks like this:
Code:
ID | NAME | DESCRIPTION | DRESSINGS
----------------------------------------------------------------------------------------------------------------
ham_and_cheese | Ham and Cheese | A sandwich with ham and cheese | Mayonnaise, Salad Cream, Chutney, No Dressing
tuna_mayo | Tuna Mayonnaise | A sandwich with tuna mayonnaise | Water Cress, Pesto
I need to loop through each record in the database and then populate a select element with the different dressings.
For example:
For ham_and_cheese, it would get the select element with the id "ham_and_cheese_dressings" and then the different options in that select would be "Mayonnaise", "Salad Cream", "Chutney" and "No Dressing".
I'm not very familiar with getting MySQL data and displaying it client side, how would I go about doing this?
Hope this is of use, Rob.