Here's an example code:
<?
$userId = $_SESSION['userId'];
$result1 = mysql_query("SELECT * FROM table1 WHERE userId1 !='$userId'") or die(mysql_error());
$result2 = mysql_query("SELECT * FROM table2 WHERE userId2 !='$userId'") or die(mysql_error());
while($row1 = mysql_fetch_array($result1) and $row2 = mysql_fetch_array($result2))
{
echo $row1['somefield'] ;
echo $row2['anotherfield'] ;
}
?>
Everything from row1 is displayed in it's own order, and the stuff from row2 is in another order, so the results don't match. Any idea how to overcome this?
This post has been edited by Sayid Ahmed: 29 June 2011 - 09:52 AM

New Topic/Question
Reply




MultiQuote









|