It appears that I am connecting to a MySQL database but unable able to return a query using mysqli class. I've done some searches and what I have coded should return the results, but I am missing something.
<?php
set_include_path('/Applications/MAMP/db/mysql57');
$host = "127.0.0.1";
$user = "admin";
$password = " ";
$bookDatbase = "Books";
$mysqli = new mysqli($host,$user, $password, $bookDatabase);
if ($mysqli->connect_errno) {
printf("Connect failed: %s\n", $mysqli->connect_error);
exit();
}
$result = $mysqli->query("SELECT Title FROM Book");
echo $result;