You are here: having problems displaying some info from DB « All PHP « IT news, forums, messages
having problems displaying some info from DB

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация