Skip to first unread message

Ahmad Faiz

unread,
Oct 10, 2015, 6:32:48 AM10/10/15
to MIT App Inventor Forum






I got a problem when i want to retrieve the "success" from the php code to app inventor.
( In blocks = when web1.GotText , i use get responseContent)
(Is there any query or something that i need to change to get the "success" from the php )

Below are some images to help you understand my problem is,
If the question have been asked , sincerely please forward to me the link about the discussion .
Thanks in advance :)
Below are are my php code about login.


(MY PHP CODE : Login.php)

$myusername=$_GET['cust_id'];
$password=$_GET['pass'];


$SQL = "SELECT * FROM customer WHERE cust_id = '$myusername' AND pass = '$password'";
$result = mysqli_query($dbc,$SQL);


$num_rows = mysqli_num_rows($result);
if ($num_rows > 0)
{
echo "success";
}

else
{echo "failure";}

print $csv_output;
Capture.PNG

Taifun

unread,
Oct 10, 2015, 3:37:56 PM10/10/15
to MIT App Inventor Forum
you could try to get my solution running http://puravidaapps.com/mysql.php

and then adjust that to your needs

Taifun
Reply all
Reply to author
Forward
0 new messages