phpbar.de logo

Mailinglisten-Archive

[php] Update, replace query.

[php] Update, replace query.

Henning Jödden php_(at)_phpcenter.de
Wed, 14 Nov 2001 13:44:45 +0100


Hi Tobias,

> mysql_query("UPDATE table SET field1=REPLACE(field1,'„','ae'),
> field1=REPLACE(field1,'”','oe'), field1=REPLACE(field1,'�','ue')");

> geht das?

Hab das hier gerade in phpMyAdmin getestet, und es hat geklappt:
"UPDATE t_mandant_profile SET schwerpunkt=REPLACE(schwerpunkt,'Ä','ae'),
schwerpunkt=REPLACE
(schwerpunkt,'Ö','oe'),
schwerpunkt=REPLACE(schwerpunkt,'Ü','ue') WHERE ProfilNr=4";

Also müsste das oben auch funktionieren.

Gruß
	Henning



php::bar PHP Wiki   -   Listenarchive