Inserting Multiple Data in the database

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

User avatar
AaaDee
New php-forum User
New php-forum User
Posts: 25
Joined: Mon Jun 24, 2002 1:10 am
Location: Huddersfield
Contact:

Inserting Multiple Data in the database

Postby AaaDee » Mon Jun 24, 2002 1:15 am

Hi, i am having difficulty in inserting multiple data into the database at one time. I am creating a skills page, you submit a skill, it takes you to the skills inside that skill and does it again. On Page 3, the final skills i have a page which gives the

skill | ability | system

the ability and system are drop down lists to select which you are

Most of the skills have more than one skills inside them so on the 3rd page their could be 10 'skill' (s) and i want to select the ability for each task and the system.

I have made it so it does insert into the database, but it only inserts the last skill. How can i make it so if i have more than one skill on the 3rd page it enters ALL the data into the database, so if i have 3 skills on the 3rd page, it will create 3 different inserts into the db!

Much Appreciated :D

Adam

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: Inserting Multiple Data in the database

Postby WiZARD » Mon Jun 24, 2002 1:59 am

In principle with each page send to user cookie:

Code: Select all

setcookie ("skill", $value);


Return to “PHP coding => General”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest