Database Access

TOP; $host = "z.cs.utexas.edu"; $user = ""; $pwd = ""; $dbs = ""; $port = "3306"; $mysqli = new mysqli($host, $user, $pwd, $dbs); if ($mysqli->connect_errno) { die("mysqli_connect failed: " . mysqli_connect_errno()); } print "Connected to ". $mysqli->host_info . "\n"; $mysqli->close(); print << BOTTOM; ?>