If duplicate title, add rand else, do nothing??
View Single Post
02-17-2010, 05:26 PM
Join Date: Sep 2007
I'm converting title as product url which i will then insert into product table in database. eg. "Fast computer whit awesome monitor" would be "fast-computer-whit-awesome-monitor".
If users are adding same title for products, we'll add end of url some random numbers eg."fast-computer-whit-awesome-monitor-86553". When generating that random number, how do I check that there is not url whit same random number in place?
View Public Profile
Send a private message to marxx
Find More Posts by marxx