Apologies...just have had loose fingers
- Original Message -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Wil" <[EMAIL PROTECTED]>;
Sent: Thursday, January 06, 2005 3:31 PM
Subject: RE: [PHP] Php error with MySql
[snip]
...stuff...
Wil
[/snip]
I
- Original Message -
From: "Wil" <[EMAIL PROTECTED]>
To:
Sent: Thursday, January 06, 2005 9:35 PM
Subject: [PHP] Php error with MySql
> I get the following error
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
> resource
Wil wrote:
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
$n
Wil Hitchman wrote:
> I get the following error
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
> resource in /home/wilmail/public_html/elblog.php on line 7
> &n=& //error ends here
>
> with the following bit of code
>
> $qResult = mysql_query ("SELECT * FROM blog_ent
sounds like there's something up with the query, perhaps the wrong table
name.
as a debugging method I usually use the die() clause when performing a query
so I can ensure the query is correct.
try using this:
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC") or
die("could n
[snip]
...stuff...
Wil
[/snip]
I replied to this over an hour ago, please do not repost.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Wil Hitchman wrote:
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY i
> From: "Wil Hitchman" <[EMAIL PROTECTED]>
>
> I get the following error
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
> resource in /home/wilmail/public_html/elblog.php on line 7
> &n=& //error ends here
>
> with the following bit of code
>
> $qResult = mysql
[snip]
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
$
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
$nRows =
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
$nRows =
I get the following error
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in /home/wilmail/public_html/elblog.php on line 7
&n=& //error ends here
with the following bit of code
$qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC");
$nRows
12 matches
Mail list logo