this is my site http://www.pinkangel4u.com/truthdare/
you can login with ussername = "chris" password = "smith"
ive created a table in my database called "game"
the feilds are id, gameno, name, sex, score, finalscore
the form code can be viewed here http://pastebin.com/m21d43d73
that form then asks for creategame.php
code is here http://pastebin.com/m64deb482
this is my function.php page http://pastebin.com/m6b863ba8
what im stuggling is how i can have the data in the table
so i think what i am asking is how do i loop so each player is entered
so effectively for each gameno there will be 15 enteries
id autoincrement
gameno this will have to be the same for each player within the form
name what is entered in namebox 1
sex what is entered in sexbox 1
score default 0
final score what is entered in the bottom of form
this will then be repeated for each player entered
also each form submitted to have a different gameno
also
help needed looping a form
Moderator: General Moderators