# Submit data to the database by URL

**URL:** <https://community.postman.com/t/submit-data-to-the-database-by-url/16896>\
**Category:** Help Hub\
**Tags:** tests, variables, collections\
**Created:** [October 19, 2020, 2:17pm UTC](https://community.postman.com/t/submit-data-to-the-database-by-url/16896 "2020-10-19T14:17:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aydnziya](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@aydnziya](https://community.postman.com/u/aydnziya)\
**Post date:** [October 19, 2020, 2:17pm UTC](https://community.postman.com/t/submit-data-to-the-database-by-url/16896/1 "2020-10-19T14:17:07Z")

</div>

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.

 ![PHP Code](https://us1.discourse-cdn.com/getpostman/original/3X/6/4/642c3d5d3fb614228d7ada04c440b015f3a76deb.png) ![Postman](https://us1.discourse-cdn.com/getpostman/original/3X/c/d/cd0f765d0798a3d80c9200e6c917597358da3d6f.png) ![Veri tabanı](https://us1.discourse-cdn.com/getpostman/original/3X/a/4/a4a08243ae896f20b6c793156a9427522363744f.png)

---

<div class="post-metadata">

**Author:** ![vdespa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/vdespa/32/2770_2.png) [@vdespa](https://community.postman.com/u/vdespa)\
**Post date:** [October 20, 2020, 7:05pm UTC](https://community.postman.com/t/submit-data-to-the-database-by-url/16896/2 "2020-10-20T19:05:00Z")

</div>

Where should I start? This has nothing to do with Postman…

1. Inserting data (or generally modifying state) with a GET request is not a good approach.
2. I haven’t touched base with PHP in a while, but your code looks like there is potential for SQLI.
3. You may want to print the value of mysqli\_error to get the actual error.

`printf("Error: %s\n", mysqli_error($connect));`
