$statement=self::$db->prepare("UPDATE tasks SET MilestoneID = :milestoneID, Title = :title, Description = :description, Status = :status WHERE ID = :taskID;");
$statement=self::$db->prepare('UPDATE tasks SET "MilestoneID" = :milestoneID, "Title" = :title, "Description" = :description, "Status" = :status WHERE "ID" = :taskID;');
$statement=self::$db->prepare("UPDATE subtasks SET TaskID = :taskID, Title = :title, Description = :description, Status = :status WHERE ID = :subtaskID;");
$statement=self::$db->prepare('UPDATE subtasks SET "TaskID" = :taskID, "Title" = :title, "Description" = :description, "Status" = :status WHERE "ID" = :subtaskID;');
$statement->bindParam("subtaskID",$subtaskID);
$statement->bindParam("subtaskID",$subtaskID);
$statement->bindParam("taskID",$taskID);
$statement->bindParam("taskID",$taskID);
$statement->bindParam("title",$title);
$statement->bindParam("title",$title);
...
@@ -255,7 +251,7 @@ class DB
...
@@ -255,7 +251,7 @@ class DB
functiongetRoadmap($roadmapID)
functiongetRoadmap($roadmapID)
{
{
$statement=self::$db->prepare("SELECT Projectname FROM roadmaps WHERE roadmaps.ID=:roadmapID;");
$statement=self::$db->prepare('SELECT "Projectname" FROM roadmaps WHERE "ID"=:roadmapID;');
$statement->bindParam("roadmapID",$roadmapID);
$statement->bindParam("roadmapID",$roadmapID);
$statement->execute();
$statement->execute();
...
@@ -264,7 +260,7 @@ class DB
...
@@ -264,7 +260,7 @@ class DB
functiongetRoadmaps()
functiongetRoadmaps()
{
{
$statement=self::$db->prepare("SELECT * FROM roadmaps ORDER BY ID;");
$statement=self::$db->prepare('SELECT * FROM roadmaps ORDER BY "ID";');
$statement->bindParam("roadmapID",$roadmapID);
$statement->bindParam("roadmapID",$roadmapID);
$statement->execute();
$statement->execute();
...
@@ -273,7 +269,7 @@ class DB
...
@@ -273,7 +269,7 @@ class DB
functiongetMilestones($roadmapID)
functiongetMilestones($roadmapID)
{
{
$statement=self::$db->prepare("SELECT * FROM milestones WHERE milestones.roadmapID=:roadmapID ORDER BY VersionCode DESC;");
$statement=self::$db->prepare('SELECT * FROM milestones WHERE "RoadmapID"=:roadmapID ORDER BY "VersionCode" DESC;');
$statement->bindParam("roadmapID",$roadmapID);
$statement->bindParam("roadmapID",$roadmapID);
$statement->execute();
$statement->execute();
...
@@ -282,7 +278,7 @@ class DB
...
@@ -282,7 +278,7 @@ class DB
functiongetMilestone($milestoneID)
functiongetMilestone($milestoneID)
{
{
$statement=self::$db->prepare("SELECT * FROM milestones WHERE milestones.ID=:milestoneID;");
$statement=self::$db->prepare('SELECT * FROM milestones WHERE "ID"=:milestoneID;');