Hello, many thanks ! I tried before something with adding damage to player with mysql query, but this is what I wanted Simple and working, just player damage + weapon damage
Can you help me with one more thing, please?
Im trying get image for each weapon, but Im not success.
I make inventory in table, all working, showin Weapon name, damage... but IMG not working.
I uploaded images with php to mysql, but I have problem get the image.
here is code:
<?php
$weaponid = $weapon3['id'];
$weapimg="SELECT * from weaponimg where weaponid='$weaponid'";
$weapimg2=mysqli_query($connection, $weapimg);
$weapimg3=mysqli_fetch_array($weapimg2);
?>
<tr>
<td><img src="./uploads/<?php $weapimg3['filename']?>"</td>
<td><?php print "$weapon3[name]" ?> </td>
<td><?php print "$weapon3[damage]" ?></td>
<td><?php print "$weapon3[level]" ?></td>
<td><?php print "$weapon3[equip]" ?></td>
</tr>
<?php } ?>
</tbody>
</table>