Jump to content


Global Change of Data

  • Please log in to reply
1 reply to this topic

#1 sparky

  • Members
  • Pip
  • Newbie
  • 9 posts
  • LocationMemphis, TN, USA
  • Age:52

Posted 22 October 2003 - 05:29 PM

I need a routine that will change all data that is in a field to something else...

Example: where class=\"abc\", I want to change it to class=\"123\"/

Thanks in advance.

John Campbell

#2 Barand

  • Moderators
  • Sen . ( ile || sei )
  • 18,017 posts

Posted 22 October 2003 - 06:26 PM

mySQL REPLACE function is what you are looking for. Check it out in the manual under string functions.
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received


|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users