Gazan Posted January 24, 2008 Share Posted January 24, 2008 Hey guys, How would i create a function to show how many topics there excists in my topic table ? Like, if there is.. 10 topics, then it shows "10" Link to comment https://forums.phpfreaks.com/topic/87643-counting-topics-in-a-database/ Share on other sites More sharing options...
sasa Posted January 24, 2008 Share Posted January 24, 2008 SELECT COUNT(DISTINCT topic) FROM topic_table Link to comment https://forums.phpfreaks.com/topic/87643-counting-topics-in-a-database/#findComment-448259 Share on other sites More sharing options...
Gazan Posted January 24, 2008 Author Share Posted January 24, 2008 And how would i echo it in a php code? Link to comment https://forums.phpfreaks.com/topic/87643-counting-topics-in-a-database/#findComment-448261 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.