@ $db = new mysqli_connect(host, username, password, database name); //Connect to the database
$sql = "";
$result = $db->query($sql); //Execute sql statement
$num_results = $result->unm_rows; //Return the number of rows
$row = $result->fetch_row($result); //Fetch a row of data or use
$row = $result->object(); //Return a row of data into an object. For example $row->title