1

I want to populate a table form a MYSQL database.

I have defined the tables and the mysql_query's so that this should be a lot cleaner.

Separately I am able to get the results, but I need to combine them since I am making a 4 column table.

looks like this:

-------------------------------------------------------------
|              |              |              |              |
| Menu 01 info | Menu 01 info | Menu 06 info | Menu 06 info |
|              |              |              |              |
-------------------------------------------------------------


while ($menu01 = mysql_fetch_array($order01)) AND while ($menu06 = mysql_fetch_array($order06)) 
{

  //TableStuff

It is the line with while that I need to be without errors. Any help would be great. PHP is not my strongest point of knowledge sorry:-)

1 Answer 1

3

Boolean and, and mind the grouping.

while (($menu01 = mysql_fetch_array($order01)) && ($menu06 = mysql_fetch_array($order06)))
Sign up to request clarification or add additional context in comments.

1 Comment

Super - Thanks for the answer. SO will let me accept your answer in 11 minutes, so I will do it then.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.