Re: [MCCODES V2] Fighting stats just cleaned up
Nice. I would use the one below me.
$stat = mysql_fetch_object(mysql_query("SELECT `strength`, `agility`, `guard`, `labour` FROM `userstats` WHERE (`userid` = ". $ir['userid'] .")"));
echo
'<h2>Fighting Stats</h2>'.
'<table border="1" width="100%">'.
'<tr>'.
'<th>Strength</th>'.
'<th>Agility</th>'.
'<th>Guard</th>'.
'<th>Labour</th>
'<th>Total Stats</th>'.
'</tr>'.
'<tr style="text-align: center;">'.
'<td>'. $stat->strength .'</td>'.
'<td>'. $stat->agility .'</td>'.
'<td>'. $stat->guard .'</td>'.
'<td>'. $stat->labour .'</td>'.
'<td>'. ($stat->strength + $stat->agility + $stat->guard + $stat->labour) .'</td>'.
'</tr>'.
'</table>';
[/php]