I had a strange, as it seems to me now, problem. Before that, I did not work with databases, so I ask for help from specialists!

I wrote scripts for registration, created a database for users, and created columns there, id: auto, (username, email, password): VARCHAR(255) and a couple of columns with date. Requests post work fine, the problem is only that "(username, email, password)" are created as null and I can not understand what the actual problem is, because the encoding is UTF8.

Here are the screenshots, because I think the code makes no sense to write here.

enter image description here

enter image description here

enter image description here

  • and if in this form the data: username=aaa&email=bbb&password=ccc ? - Igor
  • @Igor didn't work either, since I just pointed out the type of data I send, Text and the server takes Application/json - Pavel Igorevich

1 answer 1

The answer was trivial, although I was looking for it for a very long time!

In general, the essence was as follows: first, I did not correctly create the table! I, as a person who did not work with databases beforehand, created it manually, wrote all the parameters in the code - everything became a little better. Begin to issue that the parameters that I pass NULL

Next, I changed the request type to Application/json - Although I myself indicated in the server file itself which requests it accepts: D

In general, this is how I solved my problem, Thank you for your attention, maybe someone will come in handy for the future!

enter image description here enter image description here