+ 2
How we put the rows count in php and mysql?
3 Antworten
+ 5
by using mysql_num_rows function
+ 3
do a fetch_assoc in a rows var, and then loop or use lenght property
+ 1
DO NOT USE mysql php functions. they are depreciated.
depends on if you're using pdo or mysqli. but as stated previously, with fetch_assoc you can count() the rows or pass a count in the query itself.