lundi 2 juin 2014

mySQL: Removing a regex substring


Vote count:

0




I have urls stored in my database table in the following format


http://ift.tt/RYhQDc, and http://ift.tt/RYhQDe


I want to change the directory the file are stored in and reflect this change in the DB. Something like the following.


http://ift.tt/1pA6gwG, and http://ift.tt/RYhRqK


I simply want to move all images down two directories. How can I remove the top two directories from the string?



asked 48 secs ago

andre

3,709





Aucun commentaire:

Enregistrer un commentaire