I just want to count the number of rows in a table that already created in a database using php. I used mysqli(). I need the number of rows in the table as the output.
Try simple query like:
SELECT COUNT(*) AS count FROM mytable