<?
include("connect.php");
$idland = $_GET['idland'];
$check2 = 1;
$q = "UPDATE land SET check ='1' WHERE idland = '$idland' ";
$test = mysql_query($q) or die (mysql_error());
?>
Code
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'check ='1' WHERE idland = '2'' at line 1