ks for the suggestions
everyone.
--
Chris.
- Original Message -
From: "Mikey" <[EMAIL PROTECTED]>
To:
Sent: Monday, January 31, 2005 3:15 PM
Subject: RE: [PHP] Re: Troublesome Code.
>if (mysql_num_rows($SQL) == 1) {
Err, this is just the query string variable r
> If (mysql_num_rows ($sth) == 1)
Gr. Mean't to be "if", but Outlook is insisting that it knows english
better than I.
Pah!
Mikey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> >if (mysql_num_rows($SQL) == 1) {
Err, this is just the query string variable right? So you need to do:
$sth = mysql_query ($SQL);
If (mysql_num_rows ($sth) == 1)
Then you will be checking the result set and not just the query string.
HTH,
Mikey
--
PHP General Mailing List (http://www.
Chris Knipe wrote:
Lo everyone,
Can someone please perhaps just indicate to me what is wrong with the
below code? I am getting SQL Result errors, but all the queries
executes successfully.
Errors in browser:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in
4 matches
Mail list logo