a Small help about php
#5

Use this sql: (or something similar)

Код:
SELECT count(*) FROM `table`
This is just the concept, You might want to add a WHERE clause to only select tickets by a certain users.

USAGE:
PHP код:
$query mysqli_query($con"SELECT count(*) FROM `table`");
$row mysql_fetch_array($query);
$total $row[0];
echo 
"Total rows: " $total
I don't know if this is the best method to do it or not though, Kaperstone might help u more about it...
Reply


Messages In This Thread
a Small help about php - by SWAT4 - 05.12.2015, 14:37
Re: a Small help about php - by Ahmad45123 - 05.12.2015, 15:58
Re: a Small help about php - by Kaperstone - 05.12.2015, 16:23
Re: a Small help about php - by SWAT4 - 05.12.2015, 19:42
Re: a Small help about php - by Ahmad45123 - 05.12.2015, 20:00
Re: a Small help about php - by Kaperstone - 05.12.2015, 22:01
Re: a Small help about php - by Ahmad45123 - 05.12.2015, 22:10
Re: a Small help about php - by Kaperstone - 05.12.2015, 22:14
Re: a Small help about php - by Ahmad45123 - 05.12.2015, 22:37

Forum Jump:


Users browsing this thread: 2 Guest(s)