Code: Select all
<?php
$playerinfo="SELECT * from players where name='Bryan'";
$playerinfo2=mysql_query($playerinfo) or die((mysql_error));
$playerinfo3=mysql_fetch_array($playerinfo2);
$playerhealth = $playerinfo3['health'];
$playertech = $playerinfo3['tech'];
$playerenergy = $playerinfo3['energy'];
$playermaxhealth = $playerinfo3['maxhealth'];
$playermaxtech = $playerinfo3['maxtech'];
$playermaxenergy = $playerinfo3['maxenergy'];
echo $playerhealth . "/" . $playermaxhealth " " $playertech . "/" . $playermaxtech " " $playerenergy . "/" . $playermaxenergy;
?>