Re: MySQL connection: Change on syntaxis?
| From: | Christopher Ostmo | Date: | Fri, 22 Jun 2001 06:09:41 +0000 |
| Subject: | Re: MySQL connection: Change on syntaxis? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-9711@lists.php.net to get a copy of this message | ||
Tomás García Ferrari pressed the little lettered thingies in this order...
> Hello,
>
> I updated php to version 4.0.5 and MySQL to version 2.32.39, had errors on
> lines like this:
>
> $rows = mysql_num_rows($result);
>
> and noticed that this is a solution:
>
> $rows = @mysql_num_rows($result);
>
> Is this a new use of the function mysql_num_rows?
>
The only thing that the "@" does is to supress errors.
http://www.php.net/manual/en/language.operators.errorcontrol.php
What's your code and the error(s) you're getting? mysql_num_rows still
has identical syntax as it did in PHP3.
Christopher Ostmo
a.k.a. tech@AppIdeas.com
AppIdeas.com
Meeting cutting edge dynamic
web site needs
For a good time,
http://www.AppIdeas.com/