I'm following php/mysql tutorial book. The sample script connects me to my mysql database doesn't show what it should.
The line in question is
("Host information: %\n", mysqli_get_host_info($mysqli));
There rest of the code
<?php
$mysqli=new mysqli("localhost", "root", "Im not pasting this", "or this");
if (mysqli_connect_errno()){
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
} else {
printf("Host information: %\n", mysqli_get_host_info());
}
?>
I just i get "Hostname: " on the screen.