How can we find the number of rows in a result set using PHP?
Answers
Answered by
0
We can get the number of rows or records present in a table by using mysql_num_rows() function. This function is to be used along with mysql select query. We can add condition by using mysql where clause to the select query and get the conditional rows. This function is widely used in different php scripts and you can see the use of this function in PHP paging tutorial in our php tutorial section.
Similar questions
Hindi,
7 months ago
Hindi,
7 months ago
Social Sciences,
1 year ago
Biology,
1 year ago
Chemistry,
1 year ago