<?php
$con = mysql_connect("localhost", "root", "root");
if (!$con) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db("sfcommunity", $con);
$query = 'SELECT COUNT(*) FROM `jos_users_info`';
$result = mysql_query($query) or die('Sorry we could not count the number of users: ' . mysql_error());
$numberofusers = mysql_result($result, 0);
mysql_close($con);
echo "$numberofusers";
?>