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? Quote Link to comment 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']"; Quote Link to comment Share on other sites More sharing options...
bhavin12300 Posted July 11, 2007 Author Share Posted July 11, 2007 THANK YOU ITS DONE Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.