PHP help ($$)
PHP Masters, here is your chance for some easy money. I will pay $10(USD, through paypal) to whoever helps me figure this out.
I have a form that uses javascript to create multiple lines depending on the users input. If the user inputs "4", then 4 lines will appear. The problem comes when I try to insert those 4 lines into an sql database (later to be displayed on another page.) For some reason, only the last line is inserted into the sql database.
I will provide the code I am working on to any "worthy" prospective worker.
WOO HOO! I got it working now. Now I need to work on the display page. Normaly I would use something like "SELECT field1 FROM table2 WHERE id=$id", but the way I got it to work was to have multiple lines with the same id. example:
id | f1 | f2 | f3 01 | a | a | a 01 | b | b | b 02 | a | a | a 02 | b | b | b
What I am trying to do is display it like it is shown in the database, but with "SELECT field1 FROM table2 WHERE id=$id" I get:
id | | | f1 || f2 | f3 –(just used the | | for spacing) 0101 | ab | ab | ab
again, what I am trying to do, is get it displayed like:
id | f1 | f2 | f3 01 | a | a | a 01 | b | b | b
any ideas?
That is wrong….If I find some time today i will look this code over. Shoot me an email with the php pages (falrish@sympatico.ca)