Need help to understand a code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all

I need some help to understand a code. The code is like this

$result = mysql_query($sSQL) or die("err: " . mysql_error().$sSQL);
>     if($row = mysql_fetch_array($result))
>                         {
>       foreach($row as $key =>$value){ $$key=$value;}
>     }
>

I don't get the code from the foreach loop.
----------------------------------------------------------
Dedicated Linux Forum in Bangladesh <http://goo.gl/238Ck>
2048R/89C932E1 <http://goo.gl/TkP5U>
Coordinator - Public Relation Cell, FOSS Bangladesh
<http://fossbd.org/> && Mozilla
Reps <http://reps.mozilla.org>
01199151550, 01551151550

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux