Unknown column 'zoek2' in 'field list'
My source code, I couldn't find enything that was wrong?
Code: Select all
<?php require_once('Connections/verbinding.php'); ?>
<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
$editFormAction = $HTTP_SERVER_VARSї'PHP_SELF'];
if (isset($HTTP_SERVER_VARSї'QUERY_STRING'])) {
$editFormAction .= "?" . $HTTP_SERVER_VARSї'QUERY_STRING'];
}
if ((isset($HTTP_POST_VARSї"MM_insert"])) && ($HTTP_POST_VARSї"MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO nieuw (Firmanaam, Adres, Postcode, Plaats, Geslagt, Voorletters, Naam, Telefoon, Fax, Email, Url, Omschrijving, Trefwoorden, Pakket, Ilse, Vindex, Zoek, Scoot, Dolfijn, Altavista, zoek2, Telefoongids, Lycos, Google, Excite, Goudengids, int_Altavista, int_Yahoo, int_Google, int_Aol, int_Hotbot, Int_Msn) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($HTTP_POST_VARSї'Firmanaam'], "text"),
GetSQLValueString($HTTP_POST_VARSї'Adres'], "text"),
GetSQLValueString($HTTP_POST_VARSї'Postcode'], "text"),
GetSQLValueString($HTTP_POST_VARSї'Plaats'], "text"),
GetSQLValueString($HTTP_POST_VARSї'Geslagt'], "text"),
GetSQLValueString($HTTP_POST_VARSї'Voorletters'], "text"),
GetSQLValueString($HTTP_POST_VARSї'Naam'], "text"),
GetSQLValueString($HTTP_POST_VARSї'Telefoon'], "text"),
GetSQLValueString($HTTP_POST_VARSї'Fax'], "text"),
GetSQLValueString($HTTP_POST_VARSї'Email'], "text"),
GetSQLValueString($HTTP_POST_VARSї'Url'], "text"),
GetSQLValueString($HTTP_POST_VARSї'Omschrijving'], "text"),
GetSQLValueString($HTTP_POST_VARSї'Trefwoorden'], "text"),
GetSQLValueString($HTTP_POST_VARSї'Pakket'], "text"),
GetSQLValueString(isset($HTTP_POST_VARSї'Ilse']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'Vindex']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'Zoek']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'Scoot']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'Dolfijn']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'Altavista']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'zoek2']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'Telefoongids']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'Lycos']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'Google']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'Excite']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'Goudengids']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'int_Altavista']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'int_Yahoo']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'int_Google']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'int_Aol']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'int_Hotbot']) ? "true" : "", "defined","'Y'","'N'"),
GetSQLValueString(isset($HTTP_POST_VARSї'Int_Msn']) ? "true" : "", "defined","'Y'","'N'"));
mysql_select_db($database_verbinding, $verbinding);
$Result1 = mysql_query($insertSQL, $verbinding) or die(mysql_error());
}