|
Posted by Erwin Moller on 08/23/06 13:06
jdurden wrote:
> am currently woking on building this site: www.maverick-spirit.com.
> everything seems to be fine except the press releases page. When you
> click on one of the press releases in the left column under the menu,
> nothing comes up. I copied the code for the page directly from the
> press releases page on our main site: www.maverickentertainment.cc, and
> it is using an identical database, so I am unsure what is wrong.
>
> The issue happens when you click one of the press releases in the left
> column. The pressdetail.php page should open up with the text of the
> press release. Instead, it is just blank. Then, when you click "Press
> Releases", it should go to the page press.php. The following error
> occurs when trying to access press.php: "Warning: mysql_fetch_assoc():
> 11 is not a valid MySQL result resource in
> /home/mavetcom/public_html/press.php on line 80"
>
> This is the line in question:
>
> <?php } while ($row_rsNews = mysql_fetch_assoc($rsNews)); ?>
>
>
Hi,
That error means that the var named $rsNews is NOT containing the results of
a query.
The reason for the error lies BEFORE that line.
Check where you make/fill $rsNews earlier in your script.
Note: If you are too lazy to clean up your code before posting, don't expect
anyone here to do it for you.
Next time you need help, try this:
1) Remove ALL noise that has nothing to do with your problem, like 99.9% of
your current HTML.
2) Remove all PHP-stuff untill you reach the bare raw problem.
Often during this process you will find the problem yourself, if not, post
it.
I don't want to lecture you, but posting a few kilobytes of noise with a few
lines of relevant code is NOT the best way to receive help in a (any)
newgroup. :-)
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|