Just looking for some logic behind how to approach this.
I have about 5000 url's in table - which are built by prettifying the url (remove spaces etc).
Obviously all url's need to be unique and to achieve this I append a counter to the end of the url as new products are added.
But I want to add in an approach where I can do a check on all urls and make sure there are no duplicates. This may happen because of a product name change.
So basically select all product names and urls and throw in an array - now how would you approach this?
Run through the array and do a forward lookup for the url maybe?
Newer entries should be sacrificed in favour of older urls (ID is auto)
Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!
This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html). It addresses one of the most common problems that plague beginning PHP develop…