View Single Post
Old 01-17-2010, 07:37 PM  
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Please read the PHP / mysql manual.

PHP Code:
<?php
$sql 
"SELECT COUNT(*) as `count` FROM `john` WHERE `status` = 1";
$result mysql_query($sql);

list(
$count) = mysql_fetch_row($result);

echo 
$count;
?>
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote