I am currently trying to create a query that updates user's profile image.
Here's the code I am using to update the table:
$query = $connection->prepare("UPDATE userProfile SET profileImage = ? WHERE user = ? ");
$query->bindParam(1, $imageName);
$query->bindParam(2, $user);
$query->execute;
The connection to the database is not the problem, I have other queries working just fine. I may have glanced over my mistake in this problem but for some reason I just can't find it.
Thank you in advance