php-db | 2001062
Date: 06/28/01
- Next message: Pétur Björn Thorsteinsson: "[PHP-DB] retrieving images from mysql"
- Previous message: Steve Brett: "RE: [PHP-DB] delay script"
- In reply to: Russ Michell: "Re: [PHP-DB] MySQL connection: Change on syntaxis?"
- Next in thread: Christopher Ostmo: "Re: [PHP-DB] Connecting to MySQL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 they didn't
seem to do this. This may account for the new error messages after
updating PHP.
>
>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>
-- Paul DuBois, paul <email protected>-- 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: Pétur Björn Thorsteinsson: "[PHP-DB] retrieving images from mysql"
- Previous message: Steve Brett: "RE: [PHP-DB] delay script"
- In reply to: Russ Michell: "Re: [PHP-DB] MySQL connection: Change on syntaxis?"
- Next in thread: Christopher Ostmo: "Re: [PHP-DB] Connecting to MySQL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

