Hi all,
I have a regular script which inserts data into a mysql database. The database has a column called "name", which is what my problem surrounds.
The thing is, sometimes records that have the same name are added. When this happens I want a digit to be put at the end of the name, so if it's the second duplicate entry, it would be My Name 2, third My Name 3 etc.
Does anyone know how I could achieve this in PHP? My script at the moment is just a simple thing that adds the records into mysql.
Thanks,
Mike 🙂