If you have this select statement:
$Query = "SELECT First, Second, Third FROM Table1";
and you execute the statement like this:
$Result = mysql_query($Query);
and retrieve a row like this:
$Row = mysql_fetch_assoc($Result);
then extract the row like this:
you end up with these variables:
$First, $Second, $Third
containing the value of the respective fields.
Baloo :0) <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Someone came with a very clever solution to simplify the extraction of
> fields when doing a select * from table
> it's a command that passes all values from the fields on the table to
> of the same name than the field on that table. No need to program it
> creates all variables with same names as the table fields.
> Could someone tell me how to do this?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]