Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get count sql query in php

$result=mysql_query("SELECT count(*) as total from Students");
$data=mysql_fetch_assoc($result);
echo $data['total'];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #sql #query #php
ADD COMMENT
Topic
Name
4+3 =