Web Hosting Talk







View Full Version : php/mysql function...


brcolow
04-08-2003, 10:59 PM
I have a sql query that inserts something into a table. I only want tone instance of it at a time, so how could I do something where if every coulmn is the same as the one already in the database, it gets replaced so there is only one record of it?
Thanks

JustinH
04-09-2003, 02:22 AM
just make sure that all the fields in the database that you only want once instance of are marked as "unique" in mysql. Should solve your problem.