Hello, we want to send data to the database via Postman with URL and test it, but we encounter an error as follows. PHP code and Mysql database structure are as attached. If you can help with the subject, I would be very happy.
Where should I start? This has nothing to do with Postman…
- Inserting data (or generally modifying state) with a GET request is not a good approach.
- I haven’t touched base with PHP in a while, but your code looks like there is potential for SQLI.
- You may want to print the value of mysqli_error to get the actual error.
printf("Error: %s\n", mysqli_error($connect));