Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001062

Re: [PHP-DB] MySQL connection: Change on syntaxis? From: Christopher Ostmo (tech <email protected>)
Date: 06/22/01

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 =  <email protected>($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 <email protected>
AppIdeas.com
Meeting cutting edge dynamic
web site needs

For a good time,
http://www.AppIdeas.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>