Jump to content

Archived

This topic is now archived and is closed to further replies.

mkosmosports

Using AND or OR while running loops

Recommended Posts

How come I am unable to write the following code:

while ( $row = mysql_fetch_array($result7) ) || ( $row = mysql_fetch_array($result71) )?

Thanks.

Share this post


Link to post
Share on other sites
Because you need extra ()'s

while ( [color=red]([/color]$row = mysql_fetch_array($result7) ) || ( $row = mysql_fetch_array($result71)[color=red])[/color] )

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.