chaseman Posted February 13, 2011 Share Posted February 13, 2011 Ok I solved the problem, this was my initial query which didn't work: $query3 = "INSERT INTO user (avatar) VALUES ('$avatar') WHERE user_id = '$dbuser_id'"; but this one works: "UPDATE user set avatar = '$avatar' WHERE user_id = '$dbuser_id'"; Link to comment https://forums.phpfreaks.com/topic/227566-mysql-syntax-problem/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.