note 11444 added to extract

From: Date: Wed, 21 Feb 2001 10:22:47 +0000
Subject: note 11444 added to extract
Groups: php.notes 
Request: Send a blank email to php-notes+get-11346@lists.php.net to get a copy of this message
I LOVE this function. This makes developing large database queries a snap, and eliminates tons of coding. <P> Here's a database example. // Load list data $sql="select list_id,list_desc,list_image,list_name,list_showrank from lists order by list_name"; $result = mysql_query($sql); while ($r = mysql_fetch_array($result)) { extract($r,EXTR_OVERWRITE); .... etc .... http://www.php.net/manual/en/function.extract.php

« previous php.notes (#11346) next »