Javascript debugger
Website design
↑
Returns the last error message string from the last call to mysqli_connect().
<?php
$link = @mysqli_connect("localhost", "nonexisting_user", "");
if (!$link) {
printf("Can't connect to localhost. Error: %s\n", mysqli_connect_error());
}
?>