|  | Posted by nicemotion on 11/27/07 11:39 
Hallo,
 i need to insert in the 'MarcaLinea_Pdf' field the value of the var
 'recordID' sent from a page ( insert_pdf.php?recordID=14)
 
 it's easy, i know, but...
 
 Also, how to Printout the value of recordID ?
 
 The insert code is as follows:
 
 $insertSQL = sprintf("INSERT INTO pdf (ID_PDF, MarcaLinea_Pdf,
 NomePdf, Pdf_icona, Pdf_Doc) VALUES (%s, %s, %s, %s, %s)",
 GetSQLValueString($_POST['ID_PDF'], "int"),
 GetSQLValueString($_POST['MarcaLinea_Pdf'],
 "int"),
 GetSQLValueString($_POST['NomePdf'], "text"),
 GetSQLValueString($_POST['Pdf_icona'], "text"),
 GetSQLValueString($_POST['Pdf_Doc'], "text"));
 
 mysql_select_db($database_Conn_Bianchi, $Conn_Bianchi);
 $Result1 = mysql_query($insertSQL, $Conn_Bianchi) or
 die(mysql_error());
 
 Thank you
 [Back to original message] |