Re: replacing once with ereg_replace

From: Date: Mon, 19 Jan 2004 10:54:30 +0000
Subject: Re: replacing once with ereg_replace
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-32496@lists.php.net to get a copy of this message
On Monday 19 January 2004 18:21, lisi wrote: > 2) Solution: Add the leading slash to each entry in the db (MySQL) > Problem: How do I do this with a query without having to change each > one manually? I know I can change the link field using UPDATE but how would > I tell MySQL to change the entry to / + entry? Each entry is obviously > different. Using a plus makes MySQL think it's mathematical addition and > sets the field to 0. The field type is varchar. Use MySQL's CONCAT() function. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db ------------------------------------------ /* Subtlety is the art of saying what you think and getting out of the way before it is understood. */

« previous php.db (#32496) next »