PHP - prepared statements and json_encode PHP - prepared statements and json_encode json json

PHP - prepared statements and json_encode


UPDATED:

Use this:

/* bind result variables */$stmt->bind_result($col1,$col2,$col3,$col4);/* fetch values */while ($stmt->fetch()) {    $output[]=array($col1,$col2,$col3,$col4);}

Instead. Hope it helps.

anyone please give reason of putting downvote.


ini_set('display_errors',1);error_reporting(E_ALL);

and then look at HTML body again. Most likely get_result is not supported but I hate to guess.