homepage Welcome to WebmasterWorld Guest from 54.161.202.234
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
can someone please help me
i need to find an error
hirammtz




msg:4483881
 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




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

welcome to WebmasterWorld, hirammtz!

what error message did you get from mysql?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved