Jump to content

Recommended Posts

<?
include("/home/content/g/e/r/gereb/html/ps3t/config22.php");       

$trophies=mysql_query("SELECT userid,var FROM playertrophy WHERE userid=1 ");
$trophies=count($var);

echo"$trophies";

?>

 

 

What i want to to id count all the elements in the array and get a total so if the array is

 

(1,2,3,4,5,6) i want the out put to be total=6

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.