Re: MySQL connection: Change on syntaxis?

From: Date: Fri, 22 Jun 2001 05:28:25 +0000
Subject: Re: MySQL connection: Change on syntaxis?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-9713@lists.php.net to get a copy of this message
on 6/21/01 2:30 PM, Tomás García Ferrari at tgf@bigital.com 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 this a new use of the function mysql_num_rows? What are the error messages you get? The @ symbol suppresses warning messages being sent to the browser so it isn't "fixing" whatever the real problem is. Sincerely, Paul Burney ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Paul Burney Webmaster && Open Source Developer UCLA -> GSE&IS -> ETU (310) 825-8365 <webmaster@gseis.ucla.edu> <http://www.gseis.ucla.edu/> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

« previous php.db (#9713) next »