This is a discussion on Insert record using a var - basic question :( within the PHP Language forums, part of the PHP Programming Forums category; Hallo, i need to insert in the 'MarcaLinea_Pdf' field the value of the var 'recordID' sent from a page ( insert_pdf....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
..oO(nicemotion@gmail.com)
>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 ? $_GET['recordID'] Micha |
|
|||
|
On 27 Nov, 13:00, Michael Fesser <neti...@gmx.de> wrote:
> .oO(nicemot...@gmail.com) > > >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 ? > > $_GET['recordID'] > > Micha Yah :(( dunno why before didn't work Tks a lot, nik |