Hi all,
i have a normal login form where the common users and the admin can log thru......now when the common user logs in he is presented with his assigned project details and also he can enter his "days work" like start time ,end time,daystask comments thru that.htese three details get entered in the "MAST_PROJECTTASK" table.
this table has three other fields like....user_id,proj_id ..these two fields are taken from "MAST_USER" and"MAST_PROJECT" tables respectively.
now what i want is........
when a particular user logs in thru the loginform his details shud go and enter in the third table ie "MAST_PROJECTTASK"ie
his user_id,proj_id from the first two tables shud go in the third table......
as far as my tries are concerned i used the command as
$sql="insert into mast_projecttask(user_id,proj_id)select mast_user.user_id,mast_project.proj_id from mast_user,mast_project where mast_project.proj_leadid=mast_user.user_id";
$result=mysql_query($sql,$conn);
but the thing happens is when anyone user submits his details......his along with "other users" gets entered......in the table.......ie say there r 20 users then when a particular user with user_id as 1 enters thru then all other user_ids from 2 to 20 gets entered.........which i dont want....
plz help me........
Sansoft

