Young Park Young Park - 16 days ago 10
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
$stmt->num_rows
Comments