Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Warning Errors
Stvkao
Posted on 23 Aug 2008, 23:42:15

Access: Member
Total Posts: 4
Joined: 2008-08-23

Hi! Your N-13 News 3.1 is a great app.I love it very much, but i'm receiving an error message.

i'm using the following codes on my existing page.

Code:
<?php
$cat = "all";
include 'article/index.php';
?>


The news are showing up correctly I suppose..but i got this warning message

Code:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/easyhome/public_html/article/index.php on line 337

code at line 337 was

Code:
$totalnews = mysql_num_rows($query);

I replaced it with

Code:
$totalnews = mysql_num_rows($query)
or die("Query error: ". mysql_error());

and here is what i got

Code:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/easyhome/public_html/article/index.php on line 337

Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND approved = '1'' at line 1

please tell me how to fix it

thank you

//my server infos


Apache ver 2.2.8 (Unix)
MySQL ver 4.1.22-standard-log
PHP ver 5.2.6

#390
Last edited by Stvkao at 2008-08-23 23:52:45 Reason:
Chris
Posted on 24 Aug 2008, 05:12:05

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Hi Stvkao,

If you take a look at this page and follow the instructions this should fix the error for you.
#392
Last edited by Chris at 2008-08-24 05:12:52 Reason:
Stvkao
Posted on 24 Aug 2008, 09:09:47

Access: Member
Total Posts: 4
Joined: 2008-08-23

thank you very much! that fixed the problem. =)
#395
Network-13.com © 2013