Displaying ./code/Mysqli/config.php<?php
$db_host = "localhost";
$db_user = "sbaker";
$db_password = "sbaker";
$db = "sbaker";
// Connects to the database, $myconn is the resource handle for the database connection:
$myconn = new mysqli($db_host, $db_user, $db_password, $db);
if ($myconn->connect_error) {
die ("Failed to connect to database (" . $myconn->connect_errono . "): " .
$myconn->connect_error);
}
?>
|