I am trying to show the creature's avatar but i can't figure it up.
I want it to be like this: creature name (from database)+.jpg
Here is the code, i try this for the player name:
Code: Select all
<?php
include 'connect.php';
$playerinfo = "select * from players where name = 'player1'";
$playerinfo2 = mysql_query($playerinfo) or die ("Could not select players");
$playerinfo3 = mysql_fetch_array($playerinfo2);
echo "Player1 email is " . $playerinfo3['email'];
echo "<br>";
echo "Player1 avatar is " . <img src=$playerinfo3['name'].jpg />";
?>