Hello guys, sorry for the newbie question, but I need some help with this:
I have an existing database for registered users.
Each user already have the following info stored in the database: id, name, username, email, password.
I have added a new row and I want to store image names in database. I want that user to be able to upload image to the profile, but store it into the database.
With the following query the system is creating a new user, but I want only to update the 'img' field.
How can I do only update the new info and keep the rest? Please help me with this!
$query = "INSERT INTO users (id, name, username, email, password , img)
VALUES ('$new_id', '$name', '$username', '$email', '$password', '$image_name' );";
Thanks a lot!