I would appreciate if you can help me with this error ... I have tried to resolve it, but no. Perform a database restore and now it does not connect ... I do not know the reason. it seems that the credentials are correct thanks
B4X:
[28-Sep-2018 08:31:26 America/Los_Angeles] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /registro.php:8
Stack trace:
#0 {main}
thrown in /registro.php on line 8
[28-Sep-2018 08:31:48 America/Los_Angeles] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /registro.php:8
Stack trace:
#0 {main}
thrown in /registro.php on line 8
B4X:
<?
$databasehost = "mysql";
$databasename = "REGISTROxxxxxx";
$databaseusername ="xxxx";
$databasepassword = "xxxxx";
$con = mysql_connect($databasehost,$databaseusername,$databasepassword) or die(mysql_error());
mysql_select_db($databasename) or die(mysql_error());
mysql_query("SET CHARACTER SET utf8");
$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);
}
?>
B4X:
job.PostString("http://www.xxxxxxxr.com/registro.php", Query)
Query = SELECT * FROM AVxxxxxOPRESUPUESTO