View difference between Paste ID: XumiYuaA and 5aQqF0uX
SHOW: | | - or go back to the newest paste.
1-
         $con_id = connect_db();
1+
$con_id = connect_db();
2-
            $query = "UPDATE Visitors SET Acknow = -1 WHERE Person_ID = ? AND Visit_ID = ?";
2+
$query = "UPDATE Visitors SET Acknow = -1 WHERE Person_ID = ? AND Visit_ID = ?";
3-
            $sql_params = array (
3+
$sql_params = array (
4-
				(int)$_POST['pers_nr'],
4+
	(int)$_POST['pers_nr'],
5-
                (int)$_POST['bes_id'],
5+
	(int)$_POST['bes_id'],
6-
            );
6+
	);
7-
            $result = sqlsrv_query($con_id, $query, $sql_params);
7+
$result = sqlsrv_query($con_id, $query, $sql_params);