Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INSERTING SEVERAL DATA IN A TABLE (SAME COLUMN)

Status
Not open for further replies.

kingjjx

Programmer
Joined
Sep 18, 2001
Messages
181
Location
US
how can you insert data from a form to a table under the same column name at once ?
EX. Table has columns for fname, lname ,mon, tues, wed
Form looks like this:
1.
Fname:____
Lname:___
Hrs worked on Mon:___
Hrs worked on Tues:___
Hrs worked on Wed:___
2.
Fname:____
Lname:___
Hrs worked on Mon:___
Hrs worked on Tues:___
Hrs worked on Wed:___

[SUBMIT]

PLEASE HELP ON HOW TO DO THIS KINDA OF OPERATION
 
i finally did this !!!
MY NEW PROBLEM IS --> I have have a dropdown list in my form page .. so far its not letting me add it to the databse.

how do i do this ??

thanks
-jon
 
How did you manage your first problem? I would like to do the same thing - add multiple rows to a datadase at once.

Thanks
bboult10
 
bbout10,

You have to do an SQL INSERT for each record. The only exception that I know of is when the INSERT statement uses a subquery to select several rows out of another table(s).

kingjjx,
Can you be more specific. Exactly what is happening or not happening?
 
sorry guys for not being specific but I already figured the solution. I just did a loop insert kinda thing.

What I wanted to do and am able to do now is insert 5 last names and 5 first names at the same time.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top