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 <[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 = @mysql_num_rows($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: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>
>#-------------------------------------------------------#
>
> "Believe nothing - consider everything"
>
> Russ Michell
> Anglia Polytechnic University Webteam
>
> e: [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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
Paul DuBois, [EMAIL PROTECTED]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]