|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Simple Insert
Can someone tell me what is wrong with this script?
<?php require_once('Connections/inquiries.php'); ?> <?PHP $myId = $HTTP_GET_VARS['USER_ID']; $myInq = $HTTP_GET_VARS['INQUIRY_ID']; $myComp = $HTTP_GET_VARS['COMP_ID']; mysql_query (); mysql_query("INSERT INTO supplier ('USER_ID', 'INQUIRY_ID', 'COMP_ID') VALUES('".$myId . "', '" .$myInq."', '".myComp."')"; ?> I get a blank page and the records are not inserted. Thanks for any help |
|
#2
|
|||
|
|||
|
PHP Code:
Its all top of my head, I guess it should work .. Pick errors if any guys ... By the way are you using the GET method for your form ? |
|
#3
|
||||
|
||||
|
mike_r has a ?> in a strange place =)
try this (corrected mike_r code): PHP Code:
|
|
#4
|
|||
|
|||
|
Both codes should work, Just a little bit difference.
|
|
#5
|
||||
|
||||
|
Bit of a difference?
My code works and yours doesn't... =P Just kidding! I copied yours directly, making one simply correction and tried to pass it as my own... Let truth be known, I give full credit to Mike_r... ;-) |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Simple Insert |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|