RE: [PHP-DB] Separating value fields from one column to multiple column

From: Date: Mon, 28 Apr 2003 06:09:59 +0000
Subject: RE: [PHP-DB] Separating value fields from one column to multiple column
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-27398@lists.php.net to get a copy of this message
> I have a big trouble maintaining fields in Oracle, My Case is : > in one field 's_misc' it contains value with "()" separation: > (Name)(Address)(Proffesion) > > Then i want to separate this value to another column to > > s_name > s_address > s_proffesion $elements = explode(')(',substr($s_misc,1,-1)); That'll give you each of the values inside of the parenthesis in an array. This is after you pull the value out of oracle, btw. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.db (#27398) next »