Re: an sql_layer

From: Date: Sat, 11 May 2002 21:41:59 +0000
Subject: Re: an sql_layer
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97171@lists.php.net to get a copy of this message
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 (#97171) next »