PDA

View Full Version : Mysql Order


hmunawer
04-25-2012, 01:11 PM
Hi There
Could you give me the order to be executed in MySQL so as to redirect links from an old domain to a new domain such as the link

http://www.m59m.com/vb/mwaextraedit6/extra/04.gif

to be directed to

http://www.alabbady.com/vb/mwaextraedit6/extra/04.gif

By using MySQL order

Best Regards

ahmed-samara
04-25-2012, 01:19 PM
This is the replacement


UPDATE post SET pagetext = REPLACE(pagetext,'http://www.m59m.com/vb/mwaextraedit6/extra/04.gif','http://www.alabbady.com/vb/mwaextraedit6/extra/04.gif');

http://www.m59m.com/vb/mwaextraedit6/extra/04.gif = The old

http://www.alabbady.com/vb/mwaextraedit6/extra/04.gif = The New

hmunawer
04-25-2012, 01:36 PM
It works man

Thank you very much

ahmed-samara
04-25-2012, 01:48 PM
Thank you for your reply :)