adding values to array from query

From: Date: Mon, 07 Apr 2003 03:58:22 +0000
Subject: adding values to array from query
Groups: php.general 
Request: Send a blank email to php-general+get-142630@lists.php.net to get a copy of this message
hi all, if have a query like so (using pear db): $result = $db->getAll($sql); if (DB::iserror($result)){ die($result->getDebugInfo() . " at line " . __line__); } How would I go about pushing a value to the front (position 0) of that array? I have a value $attributes['id'] that I want to stick on the front of $result. Thanks Charles

« previous php.general (#142630) next »