Posted by Greg on 09/28/11 11:46
First off here's a look at the code i'm working with:
$sql_services = "Some sql statement here";
$result7 = mysql_query($sql_services);
$services_numrow = mysql_num_rows($result7);
// $services_numrow does return the correct amount of results, in this
case 4, so I know the query I'm using is working.
Then I'm using:
while ($row9 = mysql_fetch_array($result7) ){
echo "<tr><td>" . $row9['some_row_from_DB'] . "</td><td>".
$row['some_row_from_DB'] . "</td></tr>";
}
Any reason why this would not be executing at all? It's not printing
anything to the screen, even though I know there are 4 results returned
by the query.
Thanks in advance.
Greg
Navigation:
[Reply to this message]
|