dimanche 1 janvier 2017

How to generate random php slug/url and insert in database?

i want to generate 6 character random url for each post like ac7Lmn,uYoXo etc when user clicks submit button .

if the slug already exists in database then generate another.

How can i do this please help.




Aucun commentaire:

Enregistrer un commentaire