hno Posted June 13, 2009 Share Posted June 13, 2009 HI IF the query doesn't return any value in select query what does mysqli_num_rows returns?Is that 11? thanks Link to comment https://forums.phpfreaks.com/topic/162016-what-does-mysqli_num_rows-returns/ Share on other sites More sharing options...
Mark Baker Posted June 13, 2009 Share Posted June 13, 2009 You could answer this question yourself a lot more quickly simply by reading the manual. If you execute a select query - assuming that it didn't return an error - then mysqli_num_rows() tells you how many rows were returned by that query. If no data rows were retruned by the query, then (logically) mysqli_num_rows() will return 0. Link to comment https://forums.phpfreaks.com/topic/162016-what-does-mysqli_num_rows-returns/#findComment-854907 Share on other sites More sharing options...
Maq Posted June 13, 2009 Share Posted June 13, 2009 hno, Please just refer to the manual, while Mark Baker is correct, it will explain everything and much more - mysqli_num_rows. Link to comment https://forums.phpfreaks.com/topic/162016-what-does-mysqli_num_rows-returns/#findComment-854982 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.