04-29-2008, 09:06 AM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Apr 2008
Posts: 15
Thanks: 0
|
looping problem
$r=0;
$sql = "SELECT * FROM news ORDER BY id DESC";
$result = mysql_query($sql);
while($rows = mysql_fetch_array($result) || $r!=3 )
{ echo $r.'<br/>';
echo $rows['datenum']; echo'<br/>';
$r = $r+1;
}
ths code make my browser er.. how do i say it... just BANG! hahaha
i think my codes are right but why doe the lopp does not stop i already had put a condition for the loop tp stop yet i just wont..
thanx for the help... peace...
|
|
|
|