php - Number of gamertags in a table? -


i want print total number of gamertags in table equals rows.

$total = mysql_query('select count(*) gamertags'); print $total; 

the code above prints idk why?

resource id #3 

i agree other guys, it's explained on that page. here's answer anyway...

$result = mysql_query('select count(*) gamertags'); $total = mysql_result($result, 0); echo $total; 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

java - where to store the user credentials in an enterprise application(EAI)? -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -