Skip to content
Advertisement

Can’t perform a PHP POST request on mysql database

I’m struggling into do my first API in php and I’m facing some problems with a simple POST request. I’ve searched almost everywhere for some alternatives to my code, but it seems to be ok. Can you guys check it for me the last time? Thank you!

method:

JavaScript

create.php:

JavaScript

Advertisement

Answer

ok, so I managed to resolve with this code in the config/database.php

JavaScript

?>

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement