User authentication setup - first test

This commit is contained in:
William Miceli
2019-11-25 04:31:19 -05:00
parent 3a7e7ced94
commit f1fcba3e83
4 changed files with 104 additions and 2 deletions

View File

@@ -1,4 +1,6 @@
<?php
session_start();
$server = "localhost";
$database = "friendBook";
$username = "web";
@@ -12,7 +14,9 @@ $user = "William"; // Testing with until we have login working
<head>
</head>
<body>
<h1>PHP Test Page - Connecting to MySQL</h1>
<h1>PHP Test Page</h1>
<h2>Connecting to MySQL</h2>
<?php
try{
@@ -34,8 +38,12 @@ $user = "William"; // Testing with until we have login working
print $row['message'] . "\t";
}
mysqli_close($connection);
$conn = null;
?>
<h2>PHP Session Info</h2>
<?php
print_r($_SESSION);
?>
</body>
</html>