Skip to main content
Inspiring
August 26, 2006
Question

Importing a repeating region - Invalid MySQL Resource?

  • August 26, 2006
  • 2 replies
  • 333 views
On my main pageof my site, I have an article listing ofarticles marked for
"front page". I can display a certain number of these articles properly,
w/o any problems, as seen here:

http://demo.mediachurch.com

(under News Highlights).

However, when I try to pull that code out and put it in a different page
(b/c I may want to list these same things re-using the code in another
area), it gives me the following error:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in C:\XAMPP\xampp\htdocs\dMedia\www\app\nl_FrontPage.php on line 22

This is from a direct copy of the code from one page to another. Does
anybody have any idea of what could be happening? I just need a direction,
working on multiple problems today and I just can't seem to see around this
one. I've redone and recreated the page now for about 2 hours, and am just
not able to get it to work. I have had no similar problems on any of my
other pages that pull in article listings from included files.

--

TIA,

Jon Parkhurst
PriivaWeb
http://priiva.net.


This topic has been closed for replies.

2 replies

Inspiring
August 30, 2006
don't really have any idea of what caused this, but it's fixed now. Tried
same procedure...it worked this time...


"crash" <crash@bcdcdigital.com> wrote in message
news:ecqbpn$b78$1@forums.macromedia.com...
> On my main pageof my site, I have an article listing ofarticles marked for
> "front page". I can display a certain number of these articles properly,
> w/o any problems, as seen here:
>
> http://demo.mediachurch.com
>
> (under News Highlights).
>
> However, when I try to pull that code out and put it in a different page
> (b/c I may want to list these same things re-using the code in another
> area), it gives me the following error:
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
> resource in C:\XAMPP\xampp\htdocs\dMedia\www\app\nl_FrontPage.php on line
> 22
>
> This is from a direct copy of the code from one page to another. Does
> anybody have any idea of what could be happening? I just need a
> direction, working on multiple problems today and I just can't seem to see
> around this one. I've redone and recreated the page now for about 2
> hours, and am just not able to get it to work. I have had no similar
> problems on any of my other pages that pull in article listings from
> included files.
>
> --
>
> TIA,
>
> Jon Parkhurst
> PriivaWeb
> http://priiva.net.
>


Inspiring
August 29, 2006
ana-body ana-idea?

why mysql_num_rows would not be a valid resource when the query works on a
non-included page?


"crash" <crash@bcdcdigital.com> wrote in message
news:ecqbpn$b78$1@forums.macromedia.com...
> On my main pageof my site, I have an article listing ofarticles marked for
> "front page". I can display a certain number of these articles properly,
> w/o any problems, as seen here:
>
> http://demo.mediachurch.com
>
> (under News Highlights).
>
> However, when I try to pull that code out and put it in a different page
> (b/c I may want to list these same things re-using the code in another
> area), it gives me the following error:
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
> resource in C:\XAMPP\xampp\htdocs\dMedia\www\app\nl_FrontPage.php on line
> 22
>
> This is from a direct copy of the code from one page to another. Does
> anybody have any idea of what could be happening? I just need a
> direction, working on multiple problems today and I just can't seem to see
> around this one. I've redone and recreated the page now for about 2
> hours, and am just not able to get it to work. I have had no similar
> problems on any of my other pages that pull in article listings from
> included files.
>
> --
>
> TIA,
>
> Jon Parkhurst
> PriivaWeb
> http://priiva.net.
>