-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
33 lines (29 loc) · 813 Bytes
/
index.php
File metadata and controls
33 lines (29 loc) · 813 Bytes
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
28
29
30
31
32
33
<?php
/*
$servername = "0.0.0.0:3306";
$username = "root";
$password = "root";
try {
$conn = new PDO("mysql:host=$servername;dbname=misc", $username, $password);
// set the PDO error mode to exception
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
echo "Connected successfully";
}catch(PDOException $e) {
echo "Connection failed: " . $e->getMessage();
}*/
?>
<html>
<head>
<title>
dc5d86e5
</title>
</head>
<body>
<h3>Welcome to database autos </h3>
<p><a href='login.php'>
Please Log In
</a></p>
<p>Attempt to go to <a href="view.php"> view.php</a> without logging in - it should fail with an error message.</p>
<p>Attempt to go to <a href="add.php"> add.php</a> without logging in - it should fail with an error message.</p>
</body>
</html>