Hello,
i'm having 2 tables one is CLG and other is STUD.
in CLG(columns CID-autoincrement and CName) and in
STUD( three columns are ID-autoincrement,Name and CID)
> im using this code to store the records into tables
$sql="INSERT INTO clg (Cname) VALUES ('$_POST[cname]')";
$id=mysql_insert_id();
$sl="INSERT INTO stud (name,CID) VALUES ('$_POST[name]',".$id.")";
by using this.. records are getting stored into the CLG table but.. are not getting stored in STUD table...showing an null/empty value in the NAME and CID column of STUD table.
Please Help !