I use PostString to get information from php file in the server but nothing happens with the codes below. It says job success true but nothing happens. Where can be my fault?
PHP file codes are below;
B4X:
Dim Job2 As HttpJob
Job2.Initialize("Job2", Me)
Job2.PostString("http://www.xxx.com/yyy.php", "op=chat_new_messages&imei=11111111111111111")
PHP file codes are below;
B4X:
if (@$_GET["op"] == "chat_new_messages")
{
$imei = $_GET["imei"];
// get unread messages number
$q = "SELECT * FROM `gs_tracker_chat` WHERE `imei`='".$imei."' AND `side`='S' AND `status`=0";
$r = mysql_query($q);
$msg_num = mysql_numrows($r);
// set messages to delivered
$q = "UPDATE `gs_tracker_chat` SET `status`=1 WHERE `imei`='".$imei."' AND `side`='S' AND `status`=0";
$r = mysql_query($q);
echo $msg_num;
die;
}