vipzeus
Member
I need the sum of total records filtered by $userid in the list of another table.
Im use calc element but does not work.
Here what i have:
Im use calc element but does not work.
Here what i have:
PHP:
$db =& JFactory::getDBO();
$counter = "SELECT COUNT(*) AS id FROM pizzabook WHERE userid = '{$my->id}'";
$num = mysql_fetch_array($counter);
$count = $num["id"];
echo("$count");