Check variable value if change inside the Loop

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

 



Hello World,

I have a question regarding loops, How I can check inside a loop if a
variable chage a value, for example

$sql = mysql_query("SELECT model FROM table")

while($row=mysql_fetch_array){
    $model = $row['model'];
    echo "First model: ".$model."<br />";
   * // if $model chage its model value*
*   // echo "Second Model: ".$model."<br />"*
}

Thank you world !!!!!


-- 
salu2 ®0L¥

[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