eboy23 Posted April 25, 2010 Share Posted April 25, 2010 Can someone please help me remove >. i cant find out where that is comming from in the file maybe you guys might be able to help me out. here is the shops file code <?php include "globals.php"; $_GET['shop'] = abs((int) $_GET['shop']); if(!$_GET['shop']) { print "You begin looking through town and you see a few shops. "; $q=$db->query("SELECT * FROM shops WHERE shopLOCATION={$ir['location']}"); print "[img=/images/layoutt.png]<table cellspacing=1 width='85%' bgcolor='#680000'><tr><th>Shop</th><th>Description</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td>[url='shops.php?shop={$r[']{$r['shopNAME']}[/url]</td><td>{$r['shopDESCRIPTION']}</td></tr>"; } print "</table>[img=/images/layoutb.png]"; } else { $sd=$db->query("SELECT * FROM shops WHERE shopID={$_GET['shop']}"); if($db->num_rows($sd)) { $shopdata=$db->fetch_row($sd); if($shopdata['shopLOCATION'] == $ir['location']) { print "Browsing items at [b]{$shopdata['shopNAME']}...[/b] [img=/images/layoutt.png] <table cellspacing=1 bgcolor='#680000' width='75%'> <tr> <th>Item</th><th>Image</th><th>Description</th><th>Price</th><th>Sell Price</th><th>Buy</th></tr>"; $qtwo=$db->query("SELECT si.*,i.*,it.* FROM shopitems si LEFT JOIN items i ON si.sitemITEMID=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE si.sitemSHOP={$_GET['shop']} ORDER BY i.itmtype ASC, i.itmbuyprice ASC, i.itmname ASC"); $lt=""; while($r=$db->fetch_row($qtwo)) { if($lt!=$r['itmtypename']) { $lt=$r['itmtypename']; print "\n<tr><th colspan=6>{$lt}</th></tr>"; } print "\n<tr><td>{$r['itmname']}</td>><td>[img=itempics/{$r[]</td><td>{$r['itmdesc']}</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>"; } print "</table>[img=/images/layoutb.png]"; } else { print "You are trying to access a shop in another city!"; } } else { print "You are trying to access an invalid shop!"; } } $h->endpage(); ?> Quote Link to comment Share on other sites More sharing options...
CrazyT Posted April 25, 2010 Share Posted April 25, 2010 Line 37 print "\n<tr><td>{$r['itmname']}</td>><td>[img=itempics/{$r[]</td><td>{$r['itmdesc']}</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>"; Change to: print "\n<tr><td>{$r['itmname']}</td><td>[img=itempics/{$r[]</td><td>{$r['itmdesc']}</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>"; :) Quote Link to comment Share on other sites More sharing options...
sniko Posted April 25, 2010 Share Posted April 25, 2010 Line 37 print "\n<tr><td>{$r['itmname']}</td>><td>[img=itempics/{$r[]</td><td>{$r['itmdesc']}</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>"; to print "\n<tr><td>{$r['itmname']}</td><td>[img=itempics/{$r[]</td><td>{$r['itmdesc']}</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>"; Quote Link to comment Share on other sites More sharing options...
sniko Posted April 25, 2010 Share Posted April 25, 2010 Ah, just replied quicker than me Crazy :p Quote Link to comment Share on other sites More sharing options...
CrazyT Posted April 25, 2010 Share Posted April 25, 2010 Ah, just replied quicker than me Crazy :p Well, i got on here first, saw the post, i saw the > removed it and posted. :] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.