Hi i am counting total number of customers on first load so i can post the total. That is all this part does.
so my query is
//get total customers
$query = "SELECT COUNT(*) FROM users";
$res = mysqli_query($mycon,$query);
$cntr = mysqli_fetch_array($res);
When i do the print_r on $cntr it shows
 => 4
[COUNT(*)] => 4
I know i can do it this way as well.
$query = "SELECT COUNT(*) AS tnum FROM users";
then the result will be
 => 4
[tnum] => 4
my questions are;
1. cant i just do it without the tnum option and just always display , either way it looks like  will always be a reliable correct value?
2. i am curious why there are two elements, i never realized that it showed this way [COUNT(*)] => 4 and its kind of strange seeing that format. Im just curious why either way there are two elements a  and the other one.