"; $i = 1; include('/var/www/vhosts/gntinc.com/httpdocs/onlineshopping/configs.php'); include('/var/www/vhosts/gntinc.com/httpdocs/onlineshopping/db-connect.php'); $sql = "SELECT * FROM prizes WHERE Level = '$level' ORDER BY ItemNum"; $res = mysql_query($sql,$db); $num = mysql_num_rows($res); $cur = 1; for ($cur = 0; $num > $cur; ) { //print # items echo ""; for (; $cur <= $i; $cur++) { if ($cur < $num) { $row = mysql_fetch_array($res); $ItemNum = $row["ItemNum"]; $Name = stripslashes($row["Description"]); echo ""; } //end if } //end for echo ""; $i = $i + 2; }//endfor ?>
"; echo ""; echo ""; echo ""; echo "