Error in Insertion of forign key table... anyone help?

Hi,
I have two tables user and courses.. m trying to insert the data in the table of courses which containing forign key of user table.. as i have checked the syntax but m not able to solve my problem..

Here is the code...

<?php
print_r($_REQUEST);

echo $UserID= $_POST['userID'];
echo $Name= $_POST['Name'];
echo $Description= $_POST['Description'];
echo $Category =$_POST['Category'];
echo $Notes = $_POST['Notes'];

mysql_connect("localhost", "root" , "") or die ('Error:' . mysql_error());
mysql_select_db("student_registration");
?>

<?php ...


 

Related items

SeaChange To Crank Up Ad Insertion with 'Infusion'
Software Supports up to 150,000 Channels and 5 Million-Plus...

How to build Tree
I have two tables to build tree i want to know how to build tree for that tables using C Sharp. i need code for that Attached Thumbnails  

RGB, SeaChange Take Ad Insertion Across Three Screens
Solution aimed at capturing advertising revenue from 'TV Everywhere'...

Microsoft Windows Vista Step by Step
The smart way to learn the latest version of Microsoft Windows--one step at a time! Work at your own pace through the easy numbered steps, practice files on CD, helpful hints, and...

Olympus VN-960PC 128 MB Digital Voice Recorder with...
No matter where you are, the VN-960PC is a reliable companion. It ensures your notes and ideas won't be lost forever. A fast USB connection allows for hassle-free downloading of files to a PC...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
We apologize for the inconvenience. Please help fight spam.
business.marc8.com