Insert record using a var - basic question :(

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....


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-27-2007
nicemotion@gmail.com
 
Posts: n/a
Default Insert record using a var - basic question :(

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
Reply With Quote
  #2 (permalink)  
Old 11-27-2007
Michael Fesser
 
Posts: n/a
Default Re: Insert record using a var - basic question :(

..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
Reply With Quote
  #3 (permalink)  
Old 11-27-2007
nicemotion@gmail.com
 
Posts: n/a
Default Re: Insert record using a var - basic question :(

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:32 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0