First grab an associative array of the variables from the database with 

Then use extract($array); to extract all of the variables in the array 
to the symbol table:


Baloo :0) wrote:

>How can I assign automatically all fields of a database to a variable of
>the same name?
>Instead of having to manually do
>Then how could I know the number of fields in the table so I can do a
>loop to print them all in html?
>In advance, thanks for your help.

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to