Fixed the DB connection checker
Added mobile layout for user account page
This commit is contained in:
parent
87bbd023c9
commit
0d69a8212a
@ -17,7 +17,7 @@
|
|||||||
include("../dev_db_config.php"); // Include credentials
|
include("../dev_db_config.php"); // Include credentials
|
||||||
|
|
||||||
try { // Try opening the SQL database connection
|
try { // Try opening the SQL database connection
|
||||||
$conn = new PDO("mysql:host=$servername;dbname=$dbName", $username, $password);
|
$conn = new PDO("mysql:host=$servername;dbname=$dbName", $dbUsername, $dbPassword);
|
||||||
// set the PDO error mode to exception
|
// set the PDO error mode to exception
|
||||||
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||||
echo "<p>Database connection successful!</p>";
|
echo "<p>Database connection successful!</p>";
|
||||||
|
@ -103,11 +103,6 @@ session_start();
|
|||||||
echo "<a href=\"./\" class=\"subNavLink\" id=\"adminHomeButton\">ADMIN PANEL</a>";
|
echo "<a href=\"./\" class=\"subNavLink\" id=\"adminHomeButton\">ADMIN PANEL</a>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<?php
|
|
||||||
if (isset($_SESSION["userID"])){
|
|
||||||
echo "<a href=\"/user/" . $_SESSION["username"] . " \" class=\"subNavLink\">MY ACCOUNT</a>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<a href="../" class="subNavLink" id="mainHomeButton">HOME</a>
|
<a href="../" class="subNavLink" id="mainHomeButton">HOME</a>
|
||||||
<p class="newLine"></p>
|
<p class="newLine"></p>
|
||||||
<?php
|
<?php
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
.sqlOutput {
|
.sqlOutput {
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
width: 400px;
|
max-width: 400px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
@ -51,12 +51,3 @@
|
|||||||
margin: 10px !important;
|
margin: 10px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media only screen and (min-width: 360px) and (max-width: 1024px) {
|
|
||||||
|
|
||||||
.sqlOutput {
|
|
||||||
width: 275px;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -29,3 +29,19 @@
|
|||||||
height: 0;
|
height: 0;
|
||||||
width: 0;
|
width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#accountDetailsBody {
|
||||||
|
width: auto;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
#accountDetailsPanel {
|
||||||
|
width:94%;
|
||||||
|
margin-bottom: 3%;
|
||||||
|
}
|
||||||
|
#accountSocialsPanel {
|
||||||
|
width:94%;
|
||||||
|
}
|
||||||
|
#passwordChangePanel {
|
||||||
|
width:94%;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user