Lionel
17 Feb 2007, 03:51
What is a better way to get the count in below query? The code in the foreach loop is killing me. I am trying to get the number of threads with same threadprefix
$getcount=$db->query_first("SELECT count(*) as tot from ".TABLE_PREFIX."thread WHERE threadprefix='$threadprefix'");
$tot = number_format($getcount['tot']);
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
$getcount=$db->query_first("SELECT count(*) as tot from ".TABLE_PREFIX."thread WHERE threadprefix='$threadprefix'");
$tot = number_format($getcount['tot']);
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------