On Thu, 2006-08-17 at 11:02 -0300, João Cândido de Souza Neto wrote:
> Hi everyone,
>
> Im not sure if its 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") ).
Not via the select. But it's like 2 lines of code to stuff it into a sub
array when handling the result set.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php