database question

From: Date: Fri, 03 Aug 2001 00:58:50 +0000
Subject: database question
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1266@lists.php.net to get a copy of this message
I would like to get after SELECT id,text,date FROM mytable if I have this in the db:
     *  ID      TEXT       DATE
     * --------------------------------
     *  10       'one'      944679408
     *  27      'two'      944679408
     *  34       'three'    944679408
something simlar to this:
     *   array(
     *     '1' => array(10, 'one', '944679408'),
     *     '2' => array(27, 'two', '944679408'),
     *     '3' => array(34, 'three', '944679408')
I would like to know if that already exists? if yes, what is the fetch mode I have to use? Otherwise, is it possible to add it? thank you

« previous php.pear.dev (#1266) next »