mysqli_stmt_num_rows() returns 0 rows
<p>I tried to count return rows from a query using prepared statements. </p>

<p>Something like this : </p>

<pre><code>$q = "SELECT name, address, contact FROM members"; 

    $stmt = mysqli_prepare ($dbc, $q);

    mysqli_stmt_store_result($stmt);
    // Get the number of rows returned: 
    $rows = mysqli_stmt_num_rows($stmt);

    echo $rows;
</code></pre>

<p>But always I am getting 0 rows when executing this query. I tested it using mysql client ant then I got 6 returned rows. </p>

<p>can anyone tell me what is the wrong with this?</p>

<p>Thank you. </p>
