Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2002 11:28:05 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        MET <met@uberstats.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Off the Main Topic || Supplied argument is not a valid MySQL result resource
Message-ID:  <20020809162805.GB72261@dan.emsphone.com>
In-Reply-To: <001801c23fbc$879e5f60$6701a8c0@SURVIVAL>
References:  <001801c23fbc$879e5f60$6701a8c0@SURVIVAL>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 09), MET said:
> I realize that this is off topic, but I'm sending it to more specific
> PHP lists as well but none of them have such helpful people on them.
> 
> I'm getting some massive errors on some pretty simple code.  Included
> are the errors as well as the PHP function that is giving me issues.
> Any help would be greatly appreciated.  And the weirdest thing, is
> that the code used to work.... ??
> 
> Line 267 is equal to this PHP line:
> 	
> 	$RSM = mysql_fetch_array($resultm);
 
> =============================
> ERRORS:
> =============================
> 
> Warning: Supplied argument is not a valid MySQL result resource in
> D:\Gunks\NewSite\phpAds\view.inc.php3 on line 267

                $resultm = mysql_query($sqlm);                                  
                                                                                
                $RSM = mysql_fetch_array($resultm);      


You don't check that mysql_query succeeded.

-- 
	Dan Nelson
	dnelson@allantgroup.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020809162805.GB72261>