dynamic variables

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • VooDoo

    #1

    dynamic variables

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

    How can i have my var one called $data1 ?

    Hope it is possible...
    Thanks
    VooDoo


  • Daniel Tryba

    #2
    Re: dynamic variables

    VooDoo <cr.stepan@ifra nce.com> wrote:[color=blue]
    > while($row1=mys ql_fetch_array( $result))
    > {
    > $var1=$row[data1]
    > }
    >
    > How can i have my var one called $data1 ?[/color]

    Import variables into the current symbol table from an array


    or see the variable variables sections in the manual.

    --

    Daniel Tryba

    Comment

    Working...