i want to insert the value in table first time once i did that again only update in same row and not insert again. my user id is unique
Asked
Active
Viewed 90 times
0
-
This appears to be a duplicate question. When asking questions please take a look and see if the question you want to ask has already been asked before. – Chris Rutherfurd Mar 04 '16 at 07:03
-
convert your necessary column into `primary key` to update on duplicate & insert on new. Might be duplicate as @Kael. Just post your code in detail – m2j Mar 04 '16 at 07:03
-
convet the user id as primary key and use on duplicate key query – m2j Mar 04 '16 at 07:26