User authentication setup - first test
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user