Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

can someone please help me

i need to find an error

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

New User

joined:Aug 11, 2012
votes: 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());

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

joined:Aug 10, 2004
votes: 8

welcome to WebmasterWorld, hirammtz!

what error message did you get from mysql?

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members