Jump to content

help with this :|


corillo181

Recommended Posts

i asked for help before but i still got nothing..

this is inside a loop..

nd it suposed to count how many is inside of what ever the id is

[code]

$myquery=mysql_query("select count(*) from comment WHERE p_id='".$onep['p_id']."'")or die(mysql_error());
while($times=mysql_fetch_array($myquery)){
$rows=mysql_num_rows($times);
echo $rows;
}


[/code]

i think the code is self explanatory.. i'm trying to count how many things are in side the table with the same id as the variable id..
Link to comment
https://forums.phpfreaks.com/topic/10865-help-with-this/
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.