mysql will store any data you enter.
If you want to have a unique database, then you will have to query the server for the unique data before you issue an update
i think you could use
mysql_num_rows();
to query the server, if this returns more than 0 then the data is already in the database, and this data is duplicate,
HTH