Skip to content
Advertisement

Display Count of DB Records in PHP Dashboard

I need to display a “count” of records (rows) in my SQLtable “doctors”. This count must appear on my dashboard page in the below element for total number of doctors

This is index.php for my dashboard page

Advertisement

Answer

You should use mysqli object in new php version try the following code

Make connection first like

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement