
I want to do the following:
- Code: Select all
foreach ($_POST['mce_member'] as $member) {
$this->mce->setMceMember($member);
$result = $this->mce->insertMce();
echo $this->mce->getMceMember().'<br/>';
}
This echo it`s to look the result (only to know that is all correct), but when i look the results, the insertMce() function aways is called only 1 time.
P.S.: this is to insert a lot of members dynamically.
Example:
Inserting with an input:
- a
- b
- c
- d
- e
Echo returns:
- a
- b
- c
- d
- e
function insertMce() insert on database:
- a
I don't know if i was clear enough.
Can anyone help me pls??

