Re: Establish variables to be used with query data
Posted by:
Rick James
Date: March 16, 2009 10:09PM
Generally you will be fine with $row['NAME']. That's usually what I do.
If you want to get fancy, check out double-dollar:
foreach (explode(' ', 'NAME ID ALLOW TEAM LOCA') as $col)
{
$$col= $row[$col]; // This assign $NAME, $ID, etc.
}
I can hear language purists cringing. ;)
Subject
Written By
Posted
Re: Establish variables to be used with query data
March 16, 2009 10:09PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.