Hi guys, I am trying to make it count for each indiviual item and display the number next to it.
Code:<?$query = mysql_query ( "SELECT * FROM `Stations` LIMIT 6" ); while ( $fea = mysql_fetch_object ( $query ) ){ $num = 1; ?> <li> <table border="0" style="background-color:#FFFFFF" width="100%" cellpadding="3" cellspacing="3"> <tr> <td> <?echo $num;?> </td> </table> </li><?$num++; } ?>
how ever it just echos 1 6 times, rather than 1 - 6
any ideas?


Reply With Quote
