Reply to Re: [PHP] Php error with MySql

Your name:

Reply:


Posted by John Holmes on 01/06/05 21:17

> From: "Wil Hitchman" <wil.hitchman@iape1096.org>
>
> I get the following error
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/wilmail/public_html/elblog.php on line 7
> &n=& //error ends here
>
> with the following bit of code
>
> $qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
>
> $nRows = mysql_num_rows($qResult);
> $rString ="&n=".$nRows;

Your query has failed for some reason, so $qResult is not a valid result set. Use mysql_error() to find out why.

---John Holmes...

UCCASS - PHP Survey System
http://www.bigredspark.com/survey.html

[Back to original 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

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