Here's the problem.
Code:
$query=("SELECT * FROM menu");
A couple of problems exist here.
1. The $menu variable is not used
2. No query is sent to the database
See example #2 at the mysql_query documentation page for the way to do this.
First, figure out what query you're going to make of the database.
The $menu variable contains "website" so how are you going to use it in the query. Are you going to restrict the results to where the field called item is equal to "website"?
Here is how you would create that query
Once you have your query you need to pass it to your database and get a result
Finally after that, you can use your while and mysql_fetch_array to retrieve the rows
It can be preferable though to remove the assignment from inside the condition, and to use a one-and-a-half loop instead:
Bookmarks