From owner-freebsd-questions Fri Aug 9 9:28:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9842137B405 for ; Fri, 9 Aug 2002 09:28:06 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A34643E6E for ; Fri, 9 Aug 2002 09:28:06 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g79GS50N015813; Fri, 9 Aug 2002 11:28:05 -0500 (CDT) (envelope-from dan) Date: Fri, 9 Aug 2002 11:28:05 -0500 From: Dan Nelson To: MET 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> References: <001801c23fbc$879e5f60$6701a8c0@SURVIVAL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001801c23fbc$879e5f60$6701a8c0@SURVIVAL> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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