Indentation fix
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
session_start();
|
||||
session_start();
|
||||
|
||||
$server = "localhost";
|
||||
$database = "friendBook";
|
||||
$username = "web";
|
||||
$password = "Password456";
|
||||
$server = "localhost";
|
||||
$database = "friendBook";
|
||||
$username = "web";
|
||||
$password = "Password456";
|
||||
|
||||
try{
|
||||
try{
|
||||
$connection = new PDO("mysql:host=$server;dbname=$database", $username, $password);
|
||||
$connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
echo "Connected successfully";
|
||||
@@ -32,8 +32,9 @@ try{
|
||||
header("Location: /login.php");
|
||||
die();
|
||||
}
|
||||
}
|
||||
catch(PDOException $e){
|
||||
}
|
||||
catch(PDOException $e){
|
||||
echo "Error: " . $e->getMessage();
|
||||
}
|
||||
}
|
||||
$connection = null;
|
||||
?>
|
||||
Reference in New Issue
Block a user