You are here: Re: Mysql_fetch_col() « All PHP « IT news, forums, messages
Re: Mysql_fetch_col()

Posted by Richard Conway on 07/12/05 15:36

Luigi Donatello Asero wrote:
> "Richard Conway" <ric@shoe.com> skrev i meddelandet
> news:FaOAe.2$HQ1.0@fe08.ams...
>
>>Try using mysql_fetch_array instead
>
>
> I get:
>
> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
> resource in /home/s/scaiecat/www/sv/test20.php on line 7
>
> on
> https://www.scaiecat-spa-gigi.com/sv/test20.php
>
>
In that case, there is something wrong with your query. Try changing
the following line from:

$result = mysql_query("SELECT * FROM name of the table", $db);

to:

$result = mysql_query("SELECT * FROM name of the table", $db) or
die(mysql_error());

This will trap the error and output it for you so you can get some idea
of where you've gone wrong.

 

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

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