470,870 Members | 1,400 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,870 developers. It's quick & easy.

dynamic variables

Hi,
Is it possible to name dynamically variables?
ex:
$sql1="SELECT * from table1 ";
$result1=mysql_query($sql1);
while($row1=mysql_fetch_array($result))
{
$var1=$row[data1]
}

How can i have my var one called $data1 ?

Hope it is possible...
Thanks
VooDoo
Jul 17 '05 #1
1 1363
VooDoo <cr*******@ifrance.com> wrote:
while($row1=mysql_fetch_array($result))
{
$var1=$row[data1]
}

How can i have my var one called $data1 ?


http://php.net/extract

or see the variable variables sections in the manual.

--

Daniel Tryba

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Tommy Lang | last post: by
1 post views Thread by Tommy Lang | last post: by
1 post views Thread by Nathan Bloomfield | last post: by
12 posts views Thread by scott | last post: by
2 posts views Thread by deejayquai | last post: by
2 posts views Thread by JWL | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.