IT BS Help

MySQLi Count up all fields in table

in Coding


$con_db=mysqli_connect("localhost","username","password","table_name");
$result = $con_db->query("SELECT COUNT(*) FROM `table`");
$row = $result->fetch_row();
echo '#: ', $row[0];

0