From owner-freebsd-questions Fri Aug 9 16:30:16 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 9CA4737B400 for ; Fri, 9 Aug 2002 16:30:11 -0700 (PDT) Received: from mail.isg.siue.edu (mail.isg.siue.edu [146.163.5.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA0D343E5E for ; Fri, 9 Aug 2002 16:30:10 -0700 (PDT) (envelope-from vcardon@siue.edu) Received: from WEBSHIELD1.isg.siue.edu (webshield1.isg.siue.edu [146.163.5.149]) by mail.isg.siue.edu (8.9.1/8.9.1) with SMTP id SAA17362 for ; Fri, 9 Aug 2002 18:30:02 -0500 (CDT) Received: FROM _HOSTNAME_ BY WEBSHIELD1.isg.siue.edu ; Fri Aug 09 18:30:02 2002 -0500 Received: by _HOSTNAME_ (sSMTP sendmail emulation); Fri, 9 Aug 2002 18:32:49 -0500 Date: Fri, 9 Aug 2002 18:32:49 -0500 From: vcardon To: Nathan Kinkade Cc: MET , freebsd-questions@FreeBSD.ORG Subject: Re: Off the Main Topic || Supplied argument is not a valid MySQL result resource Message-ID: <20020809233249.GC12081@spastic.siue.edu> Mail-Followup-To: Nathan Kinkade , MET , freebsd-questions@FreeBSD.ORG References: <001801c23fbc$879e5f60$6701a8c0@SURVIVAL> <20020809090416.5a47f607.nkinkade@dsl-only.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="c3bfwLpm8qysLVxt" Content-Disposition: inline In-Reply-To: <20020809090416.5a47f607.nkinkade@dsl-only.net> User-Agent: Mutt/1.4i 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 --c3bfwLpm8qysLVxt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 09, 2002 at 09:04:16AM -0700, Nathan Kinkade wrote: > On Fri, 9 Aug 2002 11:50:47 -0400 > "MET" wrote: > This may be my own lack of knowledge on PHP, but what is the "@" symbol > before your call to mysql_select_db? I'm not familiar with that > construct in PHP, only PERL, but again, it may just be that I don't know > PHP well enough. Also, are you sure that your query ($sqlm) is > returning any results? Try checking for a result set with > mysql_num_rows before fetching the result array. I see that you are > using the mysql_num_rows function at other places in your code. >=20 > Nathan >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message The '@' symbol suppresses PHP's built in error reporting so that you can add your own error messages. Victor --c3bfwLpm8qysLVxt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9VFEhZU/bSegbOhwRAtwqAJ4vI20enKRTfrsUm7IgRSNh7zPbTgCgijZj DsThI/Gp8Ngz9Zh870pNemI= =/XeY -----END PGP SIGNATURE----- --c3bfwLpm8qysLVxt-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message