rendered paste body<?php$global_check = 3;$header = "Market";include("/home/ataria/public_html/global.php");echo "<title>Ataria - Market</title>";login($_COOKIE['uid']);include("/home/ataria/public_html/market/topbar.php");$get_items = mysql_query( "SELECT * FROM `user_items` WHERE `place`='Market' AND `price`>0 ORDER BY `time` DESC LIMIT 50");$count_items = mysql_num_rows($get_items);if ( $count_items == 0 ){ echo ( "<center><table cellspacing=3 cellpadding=3 width=500><tr><td class=bar><font class=white><b><center>Market</center></b></font></td></tr><tr><td><center><i>There are currently no items in the Market.</i></center></td></tr></table>");}else{ echo ("<center><table cellspacing=3 cellpadding=3 width=500><tr><td class=bar colspan=5><font class=barfont><b><center>Market</center></b></font></td></tr><tr>");?><script language=javascript>function confirmBuy(x,y){var agree=confirm("Are you sure you want to buy " + x + " for " + y + "aD?");if (agree) return true ;else return false ;}</script><?php$x = 0; while ($items = mysql_fetch_array($get_items)) {$itemid = $items[itemid];$id = $items[id];$name = $items['name'];$price = number_format($items['price']);$uid = $items['uid'];$uid2 = mysql_fetch_array(mysql_query("SELECT `username` FROM `users` WHERE `uid`=$uid"));$search = mysql_fetch_array(mysql_query("SELECT * FROM `items` WHERE `itemid`=$itemid"));$image = $search[image];$name = $search['name'];if ($x == 5) { echo "</tr><tr>"; $x=0; } $x++; echo ( "<td align='center' colspan=1 width=80 valign=top><a onClick=\"return confirmBuy('$name','$price');\" href=http://www.ataria.org/market/buy.php?itemid=$id&ownerid=$uid> <img src='/images/items/{$image}' border='0' class=img></a><br><b>$name</b><br>Price: $price aD <br>Owner: {$uid2['username']} </td>" );}echo "</tr></table>";}include("/home/ataria/public_html/bottom.php");?>