modernmafiia Posted March 15, 2012 Share Posted March 15, 2012 Hello guys im a little confused here i basically added images to my items and in the shops i replaced the line where it just prints out the item name with imagetags "<img src='{$r['itmname']}'>" <<that it displays the image as all my item names have the png to it at the end so it picks it out but just wanted to know i try replacing the link in inventory it just prints query this is the line am trying to edit: print $equip[$ir['equip_secondary']]['itmname']."</td><td><a href='unequip.php?type=equip_secondary'>Unequip Item</a></td>"; this is what i tried to do: print $equip[$ir['equip_secondary']]."<img src='{$r['itmname']}'></td><td><a href='unequip.php?type=equip_secondary'>Unequip Item</a></td>"; here are the querys and stuff in the file: $q=$db->query("SELECT * FROM items WHERE itmid IN({$ir['equip_primary']}, {$ir['equip_secondary']}, {$ir['equip_armor']})"); while($r=$db->fetch_row($q)) { $equip[$r['itmid']]=$r; } i dont get why its not being displayed i just added the image tags nothing else please if someone can kindly help Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted March 15, 2012 Share Posted March 15, 2012 echo '<img src="'.$equip[$ir['equip_secondary']]['itmname'].'">'; Should solve it... Quote Link to comment Share on other sites More sharing options...
modernmafiia Posted March 16, 2012 Author Share Posted March 16, 2012 thhank you so much 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.