Check variable value if change inside the Loop

From: Date: Wed, 19 Oct 2011 19:32:57 +0000
Subject: Check variable value if change inside the Loop
Groups: php.general 
Request: Send a blank email to php-general+get-315355@lists.php.net to get a copy of this message
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¥

« previous php.general (#315355) next »