Welcome to WebmasterWorld Guest from 54.147.44.93

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

can someone please help me

i need to find an error

     

hirammtz

5:09 pm on Aug 11, 2012 (gmt 0)



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 :(

phranque

9:40 am on Aug 12, 2012 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, hirammtz!

what error message did you get from mysql?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month