MDanz Posted November 4, 2009 Share Posted November 4, 2009 how do i count the amount of replies where topic id= e.g.44? select * from stacks where topicid=44 how do i show the value? echo *? lol Link to comment https://forums.phpfreaks.com/topic/180281-solved-number-of-replies-help/ Share on other sites More sharing options...
Bricktop Posted November 4, 2009 Share Posted November 4, 2009 Hi MDanz, Use the mysql_num_rows() function. For example: $result = mysql_query("select * from stacks where topicid=44"); $num_rows = mysql_num_rows($result); echo $num_rows; Hope this helps. Link to comment https://forums.phpfreaks.com/topic/180281-solved-number-of-replies-help/#findComment-951014 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.