User Profile
Collapse
-
Thanks so much! Seems so simple now, I just COULD NOT get it. Thank you thank you! -
on duplicate key update only null values
I am relatively new to php and mySQL. I have a database with a user form used to update and create records. I need to allow duplicate key entries to update but I do not want to overwrite existing values in the field. I only want to update the fields that are empty. Here is the code as I have it.
Code:$sql="INSERT INTO Results (a, b, c, d, e, f, g, h, i, j) VALUES ('$_POST[a]','$_POST[b]','$_POST[c]','$_POST[d]','$_P
No activity results to display
Show More
Leave a comment: