Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

count sql query in php

$sql = "SELECT COUNT(*) AS total from Members";
$result = $conn->query($sql);
$data =  $result->fetch_assoc();
echo $data['total'];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #sql #query #php
ADD COMMENT
Topic
Name
9+5 =