Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to print count query in php

$que2="SELECT COUNT(*) as countrow FROM attendance WHERE loginTime LIKE '2022-06-02%'";
$res2=mysqli_query($con,$que2);
$data=mysqli_fetch_assoc($res2);
echo $data['countrow'];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #count #query #php
ADD COMMENT
Topic
Name
4+2 =