after a mysql query to check if you have a result or not, usually used in a loop
1 2 3 4 5 6 7 8 9 10 |
echo "This ".$resultx = mysql_num_rows($result); if ($resultx == 0) { } else { while($row = mysql_fetch_array($result)) { $monthsofar[] = $row['monthsofar']; } |