Currently we are creating our website, but we have a issue because when we send a json, PHP services does not capture the datas from Json. Would someone know how to solve this issue??
For example:
Json Sent: {“codigo”:10,“nombre”:“Juan”,“eliminado”:1}
Error: “ERROR: Could not able to execute INSERT INTO tipo_persona (codigo_tipo_persona,nombre, eliminado) VALUES (,). You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘,)’ at line 1”
Hi.
I am looking your code in my mobile right now, but I think you can try to write this in your sql:
$sql = “INSERT INTO tipo_persona (codigo_tipo_persona,nombre, eliminado) VALUES (”. $c. “,”. $n. “,”. $e. “)”;
I hope it helps you, I will take a look in my pc later.
Regards.