Hi guys,
I need a little help on updating mysql fields. I let users to save some info into mysql db, inserting the lines works fine, but I don't want the user inserts the same data many times in mysql.
I want to know how to insert these informations into mysql only once and on next time it should update the specific field.
Insert:
$query = "INSERT INTO def_pictures (username, default_pic, entry_date) " .
"VALUES ('$userx', '$picname', current_date)";
Any help would be appreciated.