Young Park Young Park - 6 months ago 45
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