problm in Staff log actions help me ????

Started on the old forum in October 2009 · view the original in the archive · old links redirect here

3 replies · 308 views · started 17 years ago · 1 min read

3 participants
12345xmen Developer · 239 posts #1

hi dear

i get a error in staff log action

in this 2 action not work

report for 1»Posts

2»Topics

1»Posts its give error

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/mysite.info/mcppl.php on line 314

314 lin is bold

if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; $sql = "SELECT id, text, tid, uid, dtpost FROM ibwf_posts WHERE reported='1' ORDER BY dtpost DESC LIMIT $limit_start, $items_per_page"; $items = mysql_query($sql); while ($item = mysql_fetch_array($items)) { $poster = getnick_uid($item[3]);

2»Topics gives error

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/mysite.info/mcppl.php on line 446

446 line is bold

if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; $sql = "SELECT id, name, text, authorid, crdate FROM ibwf_topics WHERE reported='1' ORDER BY crdate DESC LIMIT $limit_start, $items_per_page"; $items = mysql_query($sql); while ($item = mysql_fetch_array($items)) { $poster = getnick_uid($item[3]);

m unbale to short out tel me where is error ?

Anshul Senior · 296 posts #2

In both parts write echo mysql_error(); after $items = mysql_query($sql); and post wat u get

12345xmen Developer · 239 posts #3

Anshul

dear nw m getting

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 '-5, 5' at line 1 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/mysite.info/mcppl.php on line 315 & 448

in post action i get this error nw what i do ?

Vayne Developer · 106 posts #4

dont mention that. that error is showing only if there isnt anything to show. make if($changable==0){}else{href to that place}

Nous Ne Dansos Pas, Nous Sommes Le Danse.!

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close