|
Posted by Steve on 09/28/84 11:46
"Greg" <greg@thegoforths.net> wrote in news:1146425011.082056.127370
@j73g2000cwa.googlegroups.com:
> 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
>
For some reason i get a simular problem when coding too. But try this.
while ($row9 = mysql_fetch_array($result7) )
{
$row_value = $row9['some_row_from_DB'];
echo "<tr><td>" . $row_value . "</td><td>".
$row['some_row_from_DB'] . "</td></tr>";
}
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0617-3, 28/04/2006
Tested on: 02/05/2006 11:04:43
avast! - copyright (c) 1988-2006 ALWIL Software.
http://www.avast.com
-------------
Get FREE newsgroup access from http://www.cheap56k.com
Navigation:
[Reply to this message]
|