Re: [PHP-DB] MySQL connection: Change on syntaxis?

2001-06-29 Thread Paul DuBois
At 9:05 AM +0100 6/22/01, Russ Michell wrote: > > Is this a new use of the function mysql_num_rows? >No!. It's not a change in syntax, but it is a change in PHP's behavior. In PHP 4, mysql_num_rows() and mysql_num_fields() will issue error messages if the argument is not a result set. In PHP 3

Re: [PHP-DB] MySQL connection: Change on syntaxis?

2001-06-22 Thread Russ Michell
> 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.

Re: [PHP-DB] MySQL connection: Change on syntaxis?

2001-06-22 Thread Dobromir Velev
ía Ferrari <[EMAIL PROTECTED]> To: PHP List <[EMAIL PROTECTED]> Date: Friday, June 22, 2001 7:33 AM Subject: [PHP-DB] MySQL connection: Change on syntaxis? 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(

RE: [PHP-DB] MySQL connection: Change on syntaxis?

2001-06-22 Thread David Balatero
Subject: [PHP-DB] MySQL connection: Change on syntaxis? 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

Re: [PHP-DB] MySQL connection: Change on syntaxis?

2001-06-22 Thread Paul Burney
on 6/21/01 2:30 PM, Tomás García Ferrari at [EMAIL PROTECTED] wrote: > 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 t

Re: [PHP-DB] MySQL connection: Change on syntaxis?

2001-06-22 Thread Christopher Ostmo
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_ro

[PHP-DB] MySQL connection: Change on syntaxis?

2001-06-21 Thread Tomás García Ferrari
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? +--