jaxbrian
asked on
mulitple submissions t the same time import into mysql?
what I am trying to do is grab multiple email addresses at the same time from the same form. I want to have multiple fields for the email addresses.
my question is, is it possible to post the same variable to my query at the same time?
like if the DB on has one row called `email` how would I post multiple emails at the same time? i can do it one at a time.
is it clear what I am asking about?
my question is, is it possible to post the same variable to my query at the same time?
like if the DB on has one row called `email` how would I post multiple emails at the same time? i can do it one at a time.
is it clear what I am asking about?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Output you vars with
or
print_r($variable);
or
var_dump($variable);
Do you want to put multiple email addresses into one field in your database table? Or do you want to put them into separate records (rows)?
ASKER
I need them to go into separate rows.
thanks for your time
B
thanks for your time
B
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I could not get that script to work for the submission of emails. I am going to award points for your help with this. I realize now that I really need three form fields to be imported to MySQL. $first, $last, and $email and I guess that is really a new question.
I have tried to work with a foreach() and I just cant seem to get that to work either
thank you for every ones help with this
I have tried to work with a foreach() and I just cant seem to get that to work either
thank you for every ones help with this
ASKER
when I try to echo the array, it only says "array" I did this just as a test to see if there was any data there. when i submit the form with multiple emails it doesn't fail, it just doesn't insert them int to eh DB.
thank you, I will keep messing with it.