ha! no joy again ( no joy means it wasnt successful, you didn't succeed - an Irish saying). I tried both versions of code below in different instances but nothing comes back on the browser, neither error nor result????????
<?php
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");
/ check connection /
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
printf("Host information: %s\n", $mysqli->host_info);
/ close connection /
$mysqli->close();
?>
<?php
$link = mysqli_connect("localhost", "my_user", "my_password", "world");
/ check connection /
if (!$link) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
printf("Host information: %s\n", mysqli_get_host_info($link));
/ close connection /
mysqli_close($link);
?>