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
+3 -6
View File
@@ -10,7 +10,7 @@ require_once "./config.php";
*/
class projectData
{
function getProjectData()
function getProjectData(): array
{
$conn = dbConn();
$stmt = $conn->prepare("SELECT title, isMainProject, information, imgLocation, projectLink, githubLink FROM projects order by date LIMIT 4;");
@@ -23,9 +23,6 @@ class projectData
{
return $result;
}
else
{
return array(array("errorMessage" => "Error, project data not found"));
}
return array("errorMessage" => "Error, project data not found");
}
}
}