-
Notifications
You must be signed in to change notification settings - Fork 1
/
connection.php
27 lines (24 loc) · 935 Bytes
/
connection.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
//$dbhost = www.koetze01.com/WEB3250/Final_Project;
//$dbuser = koetzeze_kelly;
//$dbpass = sesame;
//$dbname = koetzeze_classifieds;
$servername = "localhost"; //"108.179.220.92";
$username = "root"; //"dbljtwon_root";
$password = ""; //"j6T2&^7eR7";
$mydb = "dbljtwon_php";
$conn = mysqli_connect($servername, $username, $password, $mydb);
//$conn = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
//if not connected, echo error, otherwise echo connected message.
if (!$conn) {
die('Connect Error (' . mysqli_connect_error() . ') ' . mysqli_connect_error());
}
else {
echo 'Connected!' . mysqli_get_host_info($conn);
}
mysqli_close($conn); //closes the connection
?>