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

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]


Удаленная работа для программистов  •  Как заработать на 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

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