I have set up a new website using a database. I am not sure how i would display all results. I have my site on the front with drop down menus. But i am not sure how to do a search that will display all results. If you can look at http://www.webcitynet.com/food there is a spot that has display all. I have the other parts of the pull downs working. But dont know how to do the search for all. Any help is appreciated.
I am not quite sure what you mean by displaying all the results (and why...). But if you want to get all the records from a table called my_food then just do:
So what would i set the option value for the pull down menu "dislpay all"?? Just wondering. I understand how to display all results if i am using mysql but not with a pull down menu. Thanks
Set the value of your "Display all" option to "" (the empty string). Then, in your PHP, you can use a special "select all" SQL query when you detect this empty string value.
Bookmarks