update existing blank colums for the user
Code:
DROP TABLE chatterprofileinfo;
CREATE TABLE chatterprofileinfo(
Id SERIAL,
email VARCHAR(255) NOT NULL PRIMARY KEY,
aboutSelf VARCHAR(255),
hobbies VARCHAR(255),
music VARCHAR(255),
tv VARCHAR(255),
sports VARCHAR(255),
lastLogin DATE
);
that is the SQL email is already filled in and is the username so i need to somehow find specific email and put in stuff according to the email
currently trying to use
$query = pg_query("UPDATE chatterprofileinfo SET aboutSelf='$aboutSelf', hobbies='$hobbies', music='$music', tv='$tv', sports='$sports', lastLogin='now()' WHERE email='$username'");
and i dont think its working