wanna insert data in 2 tables...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
panisha
Forum Newbie
Posts: 3
Joined: Sat Feb 03, 2007 12:13 am

wanna insert data in 2 tables...

Post by panisha »

i want to insert the data into 2 tables...all at once time..
exp:-
the student wan to register a subject...so after he fill up the forms (insert the data)..the data should insert into the table profile and also in table subject..the student_ID is a primary key..
plz help me...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You would create an INSERT query for the first table, then another for the second and perform both. :?

Also, don't use AOL Speak here; rules and all.
Post Reply