I have 3 php files in phpmyadmin. 2 of them are private and one of them is public. When i go to public one's link, for example:
mysite./public_php_script.php
it shows this
{"teachers":[{"tid":"1","name":"g\u00f6ksel","surname":"biricik","password":"xxxx","tc":"12345678912","email":"[email protected]","avatar":"goksel.jpg"},{"tid":"2","name":"haydar","surname":"ayg\u00f6rmez","password":"xxxx","tc":"12345678913","email":"[email protected]","avatar":"haydar.jpg"},{"tid":"48","name":"Caner","surname":"Ayd\u0131n","password":"xxxx","tc":"12345678914","email":"[email protected]","avatar":"caner.jpg"},{"tid":"92","name":"deneme","surname":"denemesoy","password":"xxxx","tc":"12345678914","email":"[email protected]","avatar":"5292-1017.png"},{"tid":"93","name":"deneme2","surname":"denemesoy2","password":"xxxxx","tc":"12345678915","email":"[email protected]","avatar":"8446-1012.png"}],"success":1}
I want to get teachers database data. As you can see, those are all public and passwords are also public. What can i do? I did not connect android yet.
Should i not use this php script as public? But then how can i get this data inside private files?
Should i mask the password in sql as password in php script? But this time, how can i get to android?
Should i not get password but i need it to check if login is true?
Or for login part, should i use post method when i get login password to compare? This script will be public for android to reach it and will check and return true if correct but this time everyone can use this script to check passwords?