Someone came with a very clever solution to simplify the extraction of
all
fields when doing aselect * from table
it's a command that passes all values from the fields on the table to
variables
of the same name than the field on that table. No need to program it
manually,
creates all variabl
I do this ...
$query = mysql_query("SELECT * FROM foo");
$data = mysql_fetch_assoc($query);
extract($data);
if you need all the rows from the query, do ...
$query = mysql_query("SELECT * FROM foo");
while($data = mysql_fetch_assoc($query) {
extract($data);
}
Jim
>Someone came with
that would be extract() -- http://www.php.net/extract
On Tue, Dec 04, 2001 at 01:09:27PM -0700, Baloo :0) wrote:
> Someone came with a very clever solution to simplify the extraction of all
> fields when doing aselect * from table
>
> it's a command that passes all values from the fields on
Someone came with a very clever solution to simplify the extraction of all
fields when doing aselect * from table
it's a command that passes all values from the fields on the table to variables
of the same name than the field on that table. No need to program it manually,
creates all variabl
4 matches
Mail list logo