I Have this error code coming up on one of my php files.
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/user/public_html/userupdate.php</b> on line <b>35</b><br />
$query_checkRef = mysql_query("SELECT referral_ID from members WHERE username= '".$subid."'") or die(mysql_error());
foreach(mysql_fetch_array($query_checkRef) as $ref_id_user);
if ($ref_id_user>=1)
The one in question is the foreach(mysql) line....
How can I fix this?