New paste Repaste Download
$params = json_decode('{"category_id": 2, "product_status": "In Stock", "POINT": 0, "LIMIT": 12}');
$sql_query = "SELECT get_sample_products(':params') as jdoc";
$query = $connection->prepare($sql_query);
$query->execute(['params' => json_encode($params)]);
ERROR :
PHP Warning:  Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number in php shell code:1
Stack trace:
#0 php shell code(1): PDOStatement->execute()
#1 {main}
  thrown in php shell code on line 1
Filename: None. Size: 483b. View raw, , hex, or download this file.

This paste expires on 2025-04-10 09:28:08.928427. Pasted through web.