$query="select max(id) as id from bc_topic";
Leave the rest the same. I'm not so sure that the max(id) selection will
populate a column named id necessarily (in fact, I think it doesn't).
That may be your problem.
Phil Schwarzmann wrote:
>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
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php