Answers for "count in php query"

PHP
1

get count sql query in php

$result=mysql_query("SELECT count(*) as total from Students");
$data=mysql_fetch_assoc($result);
echo $data['total'];
Posted by: Guest on February-18-2021
0

count sql query in php

$sql = "SELECT COUNT(*) AS total from Members";
$result = $conn->query($sql);
$data =  $result->fetch_assoc();
echo $data['total'];
Posted by: Guest on December-23-2020
0

php count result query

PHP Count result
Posted by: Guest on July-20-2021

Browse Popular Code Answers by Language