bhavin12300 Posted July 11, 2007 Share Posted July 11, 2007 hi this is my code to get the number of rows according to conidtion. $submit="select COUNT(*) from nmymsg where too like $MYNAME"; $resultt=mysql_query($submit); now i wanna display this number of rows . how to do that i did like this $row=mysql_fetch_array($resultt); echo($row); but its not howing the result. how to do that? Link to comment https://forums.phpfreaks.com/topic/59485-solved-need-help/ Share on other sites More sharing options...
marcus Posted July 11, 2007 Share Posted July 11, 2007 The number of rows: $num = mysql_num_rows($resultt); A value in a field of that row: echo "$row['field_name']"; Link to comment https://forums.phpfreaks.com/topic/59485-solved-need-help/#findComment-295617 Share on other sites More sharing options...
bhavin12300 Posted July 11, 2007 Author Share Posted July 11, 2007 THANK YOU ITS DONE Link to comment https://forums.phpfreaks.com/topic/59485-solved-need-help/#findComment-295640 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.