I tried to catch all kind of possible errors from a database function. My code won't work for me, so maybe I think there is a error inside or i misunderstood something.
That's what i have
$appDB = new mysqli('localhost', '12344', '123456', '123456');
if ($appDB->connect_error) { die("Connection appDB failed: " . $appDB->connect_error); }
$result = $appDB->query($query[0].' '.$table.' '.$query[1])
or die (mysql_error().'\nAdditional Infos: $appDB->query('.$query[0].' '.$table.' '.$query[1].'); --> Result:'.$result);
That won't work - I get no errors, what I do wrong in this case?
Hope someone can explain what my error about the code is.