I am trying to bind the results generated by $stmt -> fetch()
into an array. One bad solution is I put it in while loop and get result in array from there. The only reason I asked this question because I cannot use mysqli_result::fetch_array() or mysqli_result::fetch_assoc(). , get_result()
as its in PHP 5.3 and its not supported by my server. Kindly let me know is there any better way to do it with shortcodes like get_result()
I tried this but no luck so far.
$stmt->execute();
/* Bind results */
$stmt -> bind_result($abc);
/* Fetch the value */
$row = $stmt -> fetch();
$row1=$row;