[PHP] Check variable value if change inside the Loop

2011-10-19 Thread ®0L¥
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

Re: [PHP] Check variable value if change inside the Loop

2011-10-19 Thread Jim Lucas
On 10/19/2011 12:32 PM, ®0L¥ wrote: 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: