Try doing some error checking:
$result = mysql_query("...");
if (!$result) {
die("MySQL Query failed with error: " . mysql_error());
}
That will tell you what went wrong with the query.
Note: You should never use values taken from POST and GET directly in your sql query. Such as $_POST['SRID']. You need to escape them first so they do not "break" the mysql query.
eg:
$srid = mysql_real_escape_string($_POST['SRID']);
...
$result = mysql_query("UPDATE testtable SET SRID = '$srid' .... ");
Imagine a user used a value:
$_POST['SRID'] = "this value has a single quote in it ' so it will break the query";
If you put that directly into the mysql query, then the query would look like:
"UPDATE testtable SET SRID = 'this value has a single quote in it ' so it will break the query' .... "
Notice how you now have three quotes, when there should only be two surrounding a value. This can be exploited intentionally or unintentionally by users to break to the query, or run other queries you did not expect.
When you use mysql_real_escape_string() on the value, it makes sure any quotes are escaped, so that they do not break the string.