I can handle errors just fine on MySQL, but what about warnings? If I use the following code I still get to see the warning, while that is not what I want:
if(mysql_connect($host, $user, $pass)) {
$conn_server = true;
}
else {
$msg = "Fout bij verbinden naar de server.";
$type = "error";
}
if($conn_server = true) {
if(mysql_select_db($database)) {
$msg = "Verbonden met de server en database.";
$type = "notification";
}
else {
$msg = "Fout bij verbinden naar de database.";
$type = "error";
}
}