Revision: 38121
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 25, 2010 21:53 by skrypets
Initial Code
<?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"; ?>
Initial URL
Initial Description
Initial Title
Counting entries in database table
Initial Tags
Initial Language
PHP