- Home /
Unable to get Data from MySQL using PHP
I have an online database on my server, where each username is assigned a primary key id. I want to get this id from the table with the help of PHP. The code is as follows: https://justpaste.it/1h4z3
The PHP script works when I use it through my browser, where it prints the correct id number. However, when I call this PHP through Unity: https://justpaste.it/1h4z6
The code reaches the point "Connecting to PHP", but does not print anything after that in the console.
Can anyone help me out with this issue? Thanks
Your answer
![](https://koobas.hobune.stream/wayback/20220612152701im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why it doesn't save data on the online database? 0 Answers
Storing Player Sessions 0 Answers
Remember currently logged in player 1 Answer
Unity PHP login always returning true 3 Answers
My code to php -> sql in PC good, in Android not work. plese fast 1 Answer