İlgi: [PHP-DB] mysql_numrows
| From: | sahabettin akca | Date: | Sun, 12 Oct 2008 19:42:49 +0000 |
| Subject: | İlgi: [PHP-DB] mysql_numrows | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-45522@lists.php.net to get a copy of this message | ||
query in error $blog_activity_result ,
$number_of_entries=mysql_numrows($blog_activity_result);
this line before
echo mysql_error();
add , you see error . after edit your error :))
2008/10/12, Roberto Carlos García Luís <legnakarlos@gmail.com>:
> You can use, $number_of_entries=@mysql_numrows($blog_activity_result);
>
> with @ you silence the error in the display.
>
> Robert C.
>
>
> El 12/10/2008, a las 01:19 p.m., Ron Piggott escribió:
>
>> When I do the following command:
>>
>> $number_of_entries=mysql_numrows($blog_activity_result);
>>
>> and there are no rows I get an error (Warning: mysql_numrows():
>> supplied
>> argument is not a valid MySQL result resource in ...)
>>
>> When that happens I want to display a greeting to invite the user to
>> engage in the community blog I am creating. How can I make my own
>> greeting, instead of displaying the error mySQL is giving me?
>>
>> Ron
>>
>>
>> --
>> PHP Database Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
şahabettin akca // saho