0

I am storing number of check boxes with delete ,add,view options in database, if you check on that options,it storing some values.But if i click again that will store again and again. how to avoid this duplicate values

1 Answers1

0

You can set the column containing unique value as UNIQUE or do a condition :

if SELECT Query return this value , don't insert , else insert.
Charaf JRA
  • 7,659
  • 1
  • 27
  • 41