Jump to content

help out a little here..


corillo181

Recommended Posts

so i'm trying to count the rows in a table ..

the situation is as fallow.. someone leaves a comment about something.. the id goes in to the comment table.. now i want to count how many times ppl left comment about that one thing.. this is what i tried but it dont work..
[code=php:0]
$rows=mysql_query("SELECT comment_id FROM pcomment WHERE photo_id='pic_id' ");
$countrow=mysql_num_rows($rows);

echo $countrow;
[/code]
Link to comment
https://forums.phpfreaks.com/topic/10666-help-out-a-little-here/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.