My problem is I want to select the highest 'id' row from my db (mysql) and output/store the data in variables.
So far I can do it this way;
but I want to use:
for ease of use, but it won't work - I don't get any output. Same for if I use mysql_fetch_assoc()
Any ideas?
So far I can do it this way;
PHP:
$result = mysql_query("SELECT MAX(id) FROM games");
$row = mysql_fetch_array($result);
echo $row[0];
but I want to use:
PHP:
echo $row['id'];
Any ideas?