Added in editor login feature to login into editor

Signed-off-by: rodude123 <rodude123@gmail.com>
This commit is contained in:
2022-07-29 20:00:36 +01:00
parent 315a0484b0
commit 90a3e4f533
31 changed files with 831 additions and 478 deletions
+4 -10
View File
@@ -10,7 +10,7 @@ require_once "./config.php";
*/
class timelineData
{
function getEduData()
function getEduData(): array
{
$conn = dbConn();
$stmt = $conn->prepare("SELECT DATE_FORMAT(startPeriod, '%b, %Y') as startPeriod, DATE_FORMAT(endPeriod, '%b, %Y') as endPeriod, grade, course FROM edu ORDER BY startPeriod DESC;");
@@ -23,13 +23,10 @@ class timelineData
{
return $result;
}
else
{
return array("errorMessage" => "Error, edu data not found");
}
return array("errorMessage" => "Error, edu data not found");
}
function getWorkData()
function getWorkData(): array
{
$conn = dbConn();
$stmt = $conn->prepare("SELECT DATE_FORMAT(startPeriod, '%b, %Y') as startPeriod, DATE_FORMAT(endPeriod, '%b, %Y') as endPeriod, companyName, area, title FROM work ORDER BY work.startPeriod DESC;");
@@ -42,10 +39,7 @@ class timelineData
{
return $result;
}
else
{
return array("errorMessage" => "Error, work data not found");
}
return array("errorMessage" => "Error, work data not found");
}