select colum in array.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxx
(41) 3324-2294 (41) 9985-6894
http://www.curitibaonline.com.br 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux