I’m getting the following error on one of my page:
[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 ” at line 1
here is my page code:
[CODE]<?php
//Connection statement
require_once(‘../Connections/KartConnect.php’);
//Aditional Functions
require_once(‘../includes/functions.inc.php’);
if($_REQUEST[‘cat_id’]){$cat_id= $_REQUEST[‘cat_id’];}
if($_REQUEST[‘cat’]){$cat= $_REQUEST[‘cat’];}
if($_REQUEST[‘update_users’]){
$i=0;
foreach ($_POST[‘user_id’] as $value) {
$updateSQL = “UPDATE `contacts` SET `confirmed`= ‘”.$confirmed[$i].”‘, `attended`='”.$attended[$i].”‘ WHERE `id`=”.$user_id[$i];
$Result1 = $KartConnect->Execute($updateSQL) or die($KartConnect->ErrorMsg());
$totalRows_Result1 = $Result1->RecordCount();
//echo “confirmed? – “.$confirmed[$i].'<br>’;
$i++;
}}
//echo $i;
//PHP ADODB document – made with PHAkt 2.8.2
?>
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
what could be wrong?