What's the proper coding for this?
$query = "SELECT * FROM ratings,players ORDER BY ratings.match_id DESC LIMIT 0, 1";
Once I get that how do I display info from the different tables?
<tr>
<td><? echo $row->players.player_lname; ?> <? echo $row->players.player_fname; ?></td>
<td><? echo $row->ratings.total_rating; ?></td>
</tr>
You can do math in the query right?
$query = "SELECT total_votes, total_rating, (total_rating / total_votes) AS rating_avg FROM ratings ORDER BY rating_avg DESC LIMIT 0, 1";