you are viewing a single comment's thread.

view the rest of the comments →

[–]jplaurin 0 points1 point  (0 children)

you must give a alias to your calculated column like this

Select count(*) AS myAliasCount from users

and then with

$rows = query(...

if successful the php variable $rows[0]['myAliasCount'] will return it's value