R ronell Well-Known Member Licensed User Longtime User Dec 8, 2016 #1 B4X: <?PHP include_once("sample.php"); if( isset($_POST['txtUsername']) && isset($_POST['txtPassword']) ) { $username = $_POST['txtUsername']; $password = $_POST['txtPassword']; $query = "SELECT user_name, user_password FROM Accounts ". " WHERE user_name = '$username' AND user_password = '$password'"; } ?> i have this php module deployed in my hosting , how can i get the data in txtUsername and txtpassword from this php , plss someone give me example code on how to do this ronell
B4X: <?PHP include_once("sample.php"); if( isset($_POST['txtUsername']) && isset($_POST['txtPassword']) ) { $username = $_POST['txtUsername']; $password = $_POST['txtPassword']; $query = "SELECT user_name, user_password FROM Accounts ". " WHERE user_name = '$username' AND user_password = '$password'"; } ?> i have this php module deployed in my hosting , how can i get the data in txtUsername and txtpassword from this php , plss someone give me example code on how to do this ronell
Erel B4X founder Staff member Licensed User Longtime User Dec 8, 2016 #2 Your PHP script doesn't return anything. Note that it is vulnerable to SQL injection. If you prefer to use PHP: Connect Android to MySQL Database Tutorial As I previously wrote, RDC is the recommended solution. Upvote 0
Your PHP script doesn't return anything. Note that it is vulnerable to SQL injection. If you prefer to use PHP: Connect Android to MySQL Database Tutorial As I previously wrote, RDC is the recommended solution.
R ronell Well-Known Member Licensed User Longtime User Dec 8, 2016 #3 Erel said: Your PHP script doesn't return anything. Click to expand... what do u mean by this? sorry for askin too much but im new to creating mobile apps Upvote 0
Erel said: Your PHP script doesn't return anything. Click to expand... what do u mean by this? sorry for askin too much but im new to creating mobile apps
Erel B4X founder Staff member Licensed User Longtime User Dec 8, 2016 #4 ronell said: sorry for askin too much but im new to creating mobile apps Click to expand... It has nothing to do with mobile apps. The PHP script doesn't do anything. Upvote 0
ronell said: sorry for askin too much but im new to creating mobile apps Click to expand... It has nothing to do with mobile apps. The PHP script doesn't do anything.