Hail,
Can you put two conditions in a while loop? Reason I want to know is I have two arrays I want to loop through, only stopping the loop when BOTH are eof.
Something like:
$queryH="SELECT * FROM Goals";
$resultH=mysql_query($queryH);
$queryA="SELECT * FROM Assists";
$resultA=mysql_query($queryA);
while($rowH=mysql_fetch_array($resultH) OR $rowA=mysql_fetch_array($resultA))
{
*** code here would check if either is eof, if not then it would print in a table, $queryH in 1st column, $queryA in column 2
}
Can you put two conditions in a while loop? Reason I want to know is I have two arrays I want to loop through, only stopping the loop when BOTH are eof.
Something like:
$queryH="SELECT * FROM Goals";
$resultH=mysql_query($queryH);
$queryA="SELECT * FROM Assists";
$resultA=mysql_query($queryA);
while($rowH=mysql_fetch_array($resultH) OR $rowA=mysql_fetch_array($resultA))
{
*** code here would check if either is eof, if not then it would print in a table, $queryH in 1st column, $queryA in column 2
}