Logo  

CS479/579 - Web Programming II

Displaying ./code/Sessions/config.php

<?php
  $db_host = "localhost";
  $db_user = "sbaker";
  $db_pass = "sbaker";
  $db_db   = "sbaker";

  // Connects to the database, $myconn is the resource handle for the database
  // connection:
  $myconn = new mysqli($db_host, $db_user, $db_pass, $db_db);
  if ($myconn->connect_error) {
    die ("Failed to connect to database (" . $myconn->connect_errono . "): " .
       $myconn->connect_error);
  }
?>