I have a table called forum and in this table there is, at present, one row of data. One of the fields in this row is called thread and this has a value of 1. Why does the following code return a value of 1 even though I am incrementing the thread value?:
$Query = "SELECT MAX(thread) FROM forum ";
$dbresult = mysql_query($Query, $dblink);
if($row = mysql_fetch_object($dbresult, MYSQL_ASSOC))
{
$nThread = ++$row->thread;
}