Re: an sql_layer

From: Date: Sun, 12 May 2002 21:34:04 +0000
Subject: Re: an sql_layer
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-97255@lists.php.net to get a copy of this message
tnx for the response, it was the query which caused the errors ("wrong result-link"). grtzz, me. [ProMoozz signature script initiated] [Sharon equalzz Hitler] [msg written - msg read] [ProMoozz signature script terminated] http://www.kotbelasting.be - http://www.kotbelasting.be ----- Oorspronkelijk bericht ----- Van: "Austin Marshall" <amars@pdq.net> Aan: "Http://Www.Promoozz.Org" <9800393@kahosl.be> CC: <php-general@lists.php.net> Verzonden: zaterdag 11 mei 2002 23:41 Onderwerp: Re: an sql_layer Http://Www.Promoozz.Org wrote: > i'm sweating on this one : > > function sql_fetch_row($res, $nr) > { > global $dbtype; > switch ($dbtype) { > > case "MySQL": > $row = mysql_fetch_row($res); > return $row; > break;; > ... > } > > it iz used in a php_layer.php from phpnuke, but somehow it gives errors... if i put a "@" like this: > > $row = @mysql_fetch_row($res); > > i get no errors, but no result either. Where stands the @ for? I can't find any info on thizz, what's wrong? > > [ProMoozz signature script initiated] > [Sharon equalzz Hitler] > [msg written - msg read] > [ProMoozz signature script terminated] > http://www.kotbelasting.be - > http://www.kotbelasting.be > First off, anyone using phpnuke is on their own, try phpnuke.org for help. But an @ before a function suppresses error messages, it doesn't make errors go away, so it's doing precisely what it is supposed to. I also see two ;'s in a row, perhaps that is the problem, or perhaps the query was bad and that renders fetch_row useless. We or anyone would have a far better chance of helping out if you explained what the error is... it will be alot easier than debunking the code of phpnuke on our own.

« previous php.general (#97255) next »