Article error comments

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

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

3 participants
riderz Lead · 975 posts #1

hey guys please help im getting error on this 2 line

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/waplive/public_html/chat/articles.php on line 432

 $countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM iwbf_cwart WHERE artid='".$artid."'"));
 echo "<br/><a href=\"articles.php?&action=artcom&sid=$sid&id=$id&artid=$id&cid=$cid\">Comments($countpics[0])</a>";
  $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM iwbf_cwart WHERE artid='".$artid."'"));

Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

crazybrumi Super moderator Principal · 1,064 posts #2

replace

$countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM iwbf_cwart WHERE artid='".$artid."'"));

with

$countpics = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM iwbf_cwart WHERE artid='".$artid."'"));

also if u told us wat u wanted to get from the database nd wer in the database it stored

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

nclemale36 Lead · 537 posts #3

is it not something to do with the table name being wrong lol . most sites are ibwf_ not iwbf_

just a thought .

riderz Lead · 975 posts #4

mmm now i see my error my database are ibwf tanx lol i were asleep yesterday


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

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