I have a very simple piece of code.
$mysqli = new mysqli($host, 'user', 'pass', $dbname);
if ($mysqli->connect_error) {
// ...
}
print_r($mysqli);
// ...
There are 2 servers. One with PHP 5.3 another with 5.2.4 First server works without problems, and print all details about the connection.
The second server doesn't return any error. So it looks like connection succeed. But the object is empty (while exists)
mysqli Object
(
)
What can be the problem?