Calling two sql statements at once

Is there a way to call two sql statements in one calling?  For instance I have this:

while($row = mysql_fetch_array($sql_comment))

Am I able to do something like:

while($row= mysql_fetch_array($sql_comment && $sql_replies))  ??
Who is Participating?
No. You need to call them separately and loop them separately.

while (...) {
    while (...) {

pingeyegAuthor Commented:
Darn, because I have two bits of code that are not working the way I want them to.  I am trying to display the subject of a group of question/answers and then when a new subject gets inserted a new set of question/answers starts.  Right now the subject does right, but the a/q are staying in the same place.  To see a working copy of what I mean go to  You will see two subjects, but the first reply that says "I did not see what you were looking at. Could you be more specific?" should be under the second subject at the bottom.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.