You are here: Re: mysql_num_rows HELP « PHP SQL « IT news, forums, messages
Re: mysql_num_rows HELP

Posted by Dejan on 04/02/06 15:37

ppl, tnx very much on your anwsers.
I have dealed with this problem and solved it.
I have added this error checking, buth the real error was tiping mistake.
I have named mysql table "gred", and neaded "grad". and then mysql sead
"mysql_num_rows(): supplied argument is not a valid MySQL result
resource "

tnx again
Dejan


<webramz@gmail.com> wrote in message
news:1144140487.542634.17920@t31g2000cwb.googlegroups.com...
> Write your code like this:
>
> $query = "....";
> $result = mysql_query($query);
> if($result) {
> $num_rows = mysql_num_rows($result); // notice the Result Resource
> here //
> } else {
> echo mysql_error();
> // die();
> }
>
>
> Best Regards,
>

 

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

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