I am trying to do the following query on my database table...
$ReferenceQuery = mssql_query("SELECT MAX (CallID) FROM $CallLog") + 1;
The problem is that the value of $ReferenceQuery equals 4???
There are over 26000 records in the database and when I run the same query on the SQL Server itself, the value given is 00026410.
Why is my PHP query not working? I expected the value of $ReferenceQuery to be 00026411.
Any ideas?