Created project sections front end with dummy images and text for now. Not mobile compatible yet.

This commit is contained in:
2021-09-13 18:03:20 +01:00
parent 47870fe19d
commit d304149f9b
19 changed files with 646 additions and 220 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
//////////// Config file /////////////////////
/// Used for storing important information ///
/// such as passwords, usernames etc. ///
//////////////////////////////////////////////
function dbConn(): PDO|string
{
$host = "localhost";
$dbName = "u987021215_cms";
$username = "u987021215_rodude123";
$password = "pFHS5qKhkyaDumgf";
try
{
return new PDO("mysql:host=$host;dbname=$dbName", $username, $password);
}
catch (PDOException $e)
{
return "Connection failed: " . $e->getMessage();
}
}