Hello,
Last week an unknown entity hacked my my site, after solving the problem with the service provider I get an error: ResponseError. Reason:, Response:.
Use of php scripts to make my app communicate with the database in phpMyAdmin on my web space. Initially I reconfigured the .htacces file to make Apache run php7.4. Now when the app is debugging I get the error from the server [17-Jul-2022 12:41:32 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysqli_connect () in Directory ...
Until now everything worked.
I use the following script to get row from database:
any advice will be appreciated
Last week an unknown entity hacked my my site, after solving the problem with the service provider I get an error: ResponseError. Reason:, Response:.
Use of php scripts to make my app communicate with the database in phpMyAdmin on my web space. Initially I reconfigured the .htacces file to make Apache run php7.4. Now when the app is debugging I get the error from the server [17-Jul-2022 12:41:32 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysqli_connect () in Directory ...
Until now everything worked.
I use the following script to get row from database:
PHP:
<?php
$databasehost = "localhost";
$databasename = "xxxxxx";
$databaseusername ="xxxxxx";
$databasepassword = "xxxxxxx";
$con = mysqli_connect($databasehost,$databaseusername,$databasepassword, $databasename) or die(mysqli_error($con));
mysqli_set_charset ($con , "utf8");
$query = file_get_contents("php://input");
$sth = mysqli_query($con, $query);
if (mysqli_errno($con)) {
header("HTTP/1.1 500 Internal Server Error");
echo $query.'\n';
echo mysqli_error($con);
}
else
{
$rows = array();
while($r = mysqli_fetch_assoc($sth))
{
$rows[] = $r;
}
$res = json_encode($rows);
echo $res;
mysqli_free_result($sth);
}
mysqli_close($con);
?>
any advice will be appreciated