Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Importing a repeating region - Invalid MySQL Resource?

LEGEND ,
Aug 26, 2006 Aug 26, 2006
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.


TOPICS
Server side applications
333
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 29, 2006 Aug 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.
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 30, 2006 Aug 30, 2006
LATEST
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.
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines