I am in super need of some assistance and I have no idea what's wrong.
i spent all of my afternoon trying to fix it
the supposed syntax for my database to insert things is:
INSERT INTO `clientes`(`Clave`, `Nombre`, `Paterno`, `Materno`, `R.F.C.`) VALUES ([value-1],[value-2],[value-3],[value-4],[value-5])
the code is this one: (Dreamveaver did it, not me)
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf( "INSERT INTO `clientes`(`Clave`, `Nombre`, `Paterno`, `Materno`, `R.F.C.`) VALUES (%s,%s,%s,%s,%s)",
GetSQLValueString($_POST['Clave'], "int"),
GetSQLValueString($_POST['Nombre'], "text"),
GetSQLValueString($_POST['Paterno'], "text"),
GetSQLValueString($_POST['Materno'], "text"),
GetSQLValueString($_POST['RFC'], "text"));
mysql_select_db($database_miconexion, $miconexion);
$Result1 = mysql_query($insertSQL, $miconexion) or die(mysql_error());
}
PLEASE PLEASE PLEASE help :(