Android Question connect remote server

DonManfred

Expert
Licensed User
Longtime User
Last edited:
Upvote 0

BillMeyer

Well-Known Member
Licensed User
Longtime User
It never ceases to amaze me how this forum works.

1 Question - 5 Answers and 2 tips from an Expert - just like that !!

upload_2019-3-20_8-13-12.png


Are we not a PRIVILEGED Bunch ??
 
Upvote 0

Jose Briceño

Member
Licensed User
this webservice marks me error, take it out of the forum

<?php

$databasehost = "http://201.111.111.111";
$databasename = "softcont";
$databaseusername ="softcont_root";
$databasepassword = ",sUF]AU8lH)m";


$con = mysql_connect($databasehost,$databaseusername,$databasepassword) or die(mysql_error());
mysql_set_charset("utf8");
mysql_select_db($databasename) or die(mysql_error());
$query = file_get_contents("php://input");

$sth = mysql_query($query);


if (mysql_errno()) {
header("HTTP/1.1 500 Internal Server Error");
echo $query.'\n';
echo mysql_error();
}
else
{
$rows = array();
while($r = mysql_fetch_assoc($sth)) {

$rows[] = $r;
}


print json_encode($rows);
}

[23-Mar-2019 15:36:49 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/cso43215/public_html/pasajes.php on line 9
 
Upvote 0
Top