I am very new to PHP.
I am trying to connect to mysql server from PHP and the php page returns blank.
here is my code
Code: Select all
<?php
$mysqli = new mysqli("localhost", "ishuser", "somepass","testdb");
if (mysqli_connect_errno()) {
printf("connect failed: %s\n", mysqli_connect_error());
exit();
} else {
printf("Host information: %s\n", mysqli_get_host_info($mysqli));
mysqli_close($mysqli);
}
?>
Could someone please tell me what the problem is.
thanks
Ish