Erro no codigo pq?
Boa noite sr.estou com problema no codigo da minha pagina de cadastro
q seria uma pagina que ao cliente se cadastrar, as sua informações vão para um banco de dados abrigado
e o erro está na linha 41 a 44
<?php require_once('Connections/conexao.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 = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO sistema_de_login (nome, Endereço, TelefoneS, Email, Como_nos_conheceu, Data_de_nascimento, CPF) VALUES (%s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['Nome'], "text"),
GetSQLValueString($_POST['Endereço'], "text"),
GetSQLValueString($_POST['Telefones'], "text"),
GetSQLValueString($_POST['Email'], "text"),
GetSQLValueString($_POST['Como_nos_conheceu'], "text")
[color="#FF0000"]GetSQLValueString($_POST['Data_de_nascimento'], "text")
GetSQLValueString($_POST['CPF'], "text")
GetSQLValueString($_POST['Login'], "text")
GetSQLValueString($_POST['Senha'], "text"));[/color]
mysql_select_db($database_conexao, $conexao);
$Result1 = mysql_query($insertSQL, $conexao) or die(mysql_error());
$insertGoTo = "enviado.html";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}
?>
se alguem poder me ajudar eu agradeço o erro está dez dá parte de( data de nascimento até senha)
Discussão (1)
Carregando comentários...