hi guys
when i save the email address the value looks like this below,
anna_single16%40yahoo.com
it suppose to be anna_single@yahoo.com
Now how to i remove those nasty characters?
thank you very much in advance.
| SitePoint Sponsor |
hi guys
when i save the email address the value looks like this below,
anna_single16%40yahoo.com
it suppose to be anna_single@yahoo.com
Now how to i remove those nasty characters?
thank you very much in advance.


Code:UPDATE daTable SET email = REPLACE(email,'%40','@') WHERE POSITION('%' IN email) > 0
thanks 4937
But how about in INSERT?


if it is getting converted during insert, it is not mysql's fault
what language are you using? php? that'll be where the problem is
yeah php
so what the command in php to clean that?
thank you.


as i know is INSERT mean fill in a new data into db....
if want to clear the whole row in sql,you need to used DELETE..
Bookmarks