Young Park Young Park - 1 year ago 73
PHP Question

What is the syntax for counting number of rows in PHP Prepared Statement?

In using PHP Prepared Statement, what is the syntax for counting number of rows?





$stmt = $conn->stmt_init(); $query =
"SELECT * FROM TableName";

if($stmt->prepare($query)){

$stmt->num_row(); //SOMETHING SIMILAR
TO THIS.... }

Answer Source
$stmt->num_rows
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download