Re: [PHP-DB] Fetch two mysql resource in while loop

2004-06-17 Thread Pablo M. Rivas
Hello sam, Did you try: while($row1=mysql_fetch_row($result1) AND $row2=mysql_fetch_row($result2)) ? or this: while(($row1=mysql_fetch_row($result1)) ($row2=mysql_fetch_row($result2))) ? good luck! P.S. These two actually work... i'm

[PHP-DB] Fetch two mysql resource in while loop

2004-06-16 Thread sam
Hi all: i worte a piece of code like this $result1 = mysql_query(query1); $result2 = mysql_query(query2); while($row1=mysql_fetch_row($result1) $row2=mysql_fetch_row($result2)){ } only $row2 is initazlied. row1 is always empty. if i change it like this