Jump to content
MakeWebGames

could do with some help


modernmafiia

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...