Fixed small issues with projectData not being able to save uploaded image url to db

Signed-off-by: rodude123 <rodude123@gmail.com>
This commit is contained in:
2023-06-26 18:08:53 +01:00
parent 5ac8282fb6
commit 7d0317ed60
6 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ class projectData
// update the database with the new image location
$conn = dbConn();
$stmt = $conn->prepare("UPDATE projects SET imgLocation = :imgLocation WHERE ID = :ID");
$stmt->bindParam(":imgLocation", $targetFile);
$stmt->bindParam(":imgLocation", $targetFile["imgLocation"]);
$stmt->bindParam(":ID", $ID);
$stmt->execute();
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long