Re: select colum in array.

From: Date: Thu, 17 Aug 2006 14:47:20 +0000
Subject: Re: select colum in array.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-240805@lists.php.net to get a copy of this message
I found another solution myself. Thanks four your answer Robert. ""João Cândido de Souza Neto"" <joao@curitibaonline.com.br> escreveu na mensagem news:51.31.26524.FF674E44@pb1.pair.com... > Hi everyone, > > I´m not sure if it´s the right place to get such answer, but if someone > know, please, help me. > > In a select id,name,picture1,picture2,picture3 from product where id="10" > i get an array with each colum in each element like this $result ("id" => > "10", "name" => "name of product", "picture1" => > "pic1.gif", "picture2" => > "pic2.gif", "picture3" => "pic3.gif"). > > Is there any way in select to get something like this: > > $result ("id" => "10", "name" => "name of > product", "pictures" => array( > "pic1" => "pic1.gif", "pic2" => "pic2.gif", > "pic3" => "pic3.gif") ). > > > -- > João Cândido de Souza Neto > Curitiba Online > joao@curitibaonline.com.br > (41) 3324-2294 (41) 9985-6894 > http://www.curitibaonline.com.br

« previous php.general (#240805) next »