Here is my code...

$query = "SELECT max(id) FROM bc_topic";
$result = mysql_query($query);
$temp = mysql_result($result, 0, "id");  <- this is line 8
echo $temp[id];

Here is the error I get ...

Warning: id not found in MySQL result index 2 in /.../upload2.php on
line 8

What am I doing wrong here?

I know for sure that there definately is a column named 'id' and it's
the primary key and also an auto_increment.

Reply via email to