prcollin Posted May 16, 2008 Share Posted May 16, 2008 I just need to have a small script for a counter that counts the number of entries in a table on my database every time the page is loaded. So it just needs to count each row. How would this be done easily?? Link to comment https://forums.phpfreaks.com/topic/105864-simple-counter-script/ Share on other sites More sharing options...
perezf Posted May 16, 2008 Share Posted May 16, 2008 $sql = "SELECT * FROM table_name"; $runsql = mysql_query($sql); print mysql_num_rows($runsql); Link to comment https://forums.phpfreaks.com/topic/105864-simple-counter-script/#findComment-542551 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.