php-db | 2001062
Date: 06/22/01
- Next message: Paul Gardiner: "Re: [PHP-DB] Informix Question (Still need help,please)"
- Previous message: Russ Michell: "Re: [PHP-DB] 1 is not a valid PostgreSQL link resource"
- In reply to: Tomás Garca Ferrari: "[PHP-DB] MySQL connection: Change on syntaxis?"
- Next in thread: Paul DuBois: "Re: [PHP-DB] MySQL connection: Change on syntaxis?"
- Reply: Paul DuBois: "Re: [PHP-DB] MySQL connection: Change on syntaxis?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Is this a new use of the function mysql_num_rows?
No!
You can use the @ to 'suppress error messages' that may reveal
delicate information to users such as paths to directories on your
server. It can be preppended to almost any php function likely to
result in an error, if used incorrectly.
Russ
On Thu, 21 Jun 2001 23:30:03 +0200 Tom=?ISO-8859-1?B?4XMgR2FyY+0=?=a
Ferrari <tgf <email protected>> wrote:
> 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 = <email protected>($result);
>
> Is this a new use of the function mysql_num_rows?
>
> +-- --+
> Tomás García Ferrari Bigital
> http://bigital.com/ +--
> --+
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
#-------------------------------------------------------#
"Believe nothing - consider everything"
Russ Michell
Anglia Polytechnic University Webteam
e: r.j.michell <email protected>
w: www.apu.ac.uk/webteam
t: +44 (0)1223 363271 x 2331
www.theruss.com
#-------------------------------------------------------#
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Paul Gardiner: "Re: [PHP-DB] Informix Question (Still need help,please)"
- Previous message: Russ Michell: "Re: [PHP-DB] 1 is not a valid PostgreSQL link resource"
- In reply to: Tomás Garca Ferrari: "[PHP-DB] MySQL connection: Change on syntaxis?"
- Next in thread: Paul DuBois: "Re: [PHP-DB] MySQL connection: Change on syntaxis?"
- Reply: Paul DuBois: "Re: [PHP-DB] MySQL connection: Change on syntaxis?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

