I have a set of posts on monthly basis. Now i need an array which contains total records of posts posted in each month. I tried below MySql query, Its working fine, but I wa
I think you simply need query like this
SELECT COALESCE(COUNT(id),0) AS totid FROM table
vb example
Set count=Con.Execute("SELECT COALESCE(COUNT(id),0) AS totid FROM table")
then write
<%=count("totid")%>