I created a new empty php file with simple function for mysqli query, like this:
$dab = new mysqli($dbHost,$dbUser,$dbPassword,$dbDBName);
function dbq($sql) {
global $dab;
$wynik= $dab->query($sql);
if (!$wynik) {
printf("Errormessage: %s
", $dab->error);
}
return $wynik;
}
dbq('SET CHARACTER SET utf8');
dbq('SET collation_connection = utf8_general_ci');
On every query I'm getting blank Errormessage and really don't know what could be a cause here.
Script is connecting with the database without any errors. When I performed a looped query, I recieved blank Errormessage for each repeat.