Hi,
I’ve made a little web app that send email based on array
In this case the email is sended at email@email.it with all the details contained into the array, my problem is this:
When the email is sended i want to update the db based on the id contained in the array but i’m stuck on it because he update me only the last value
( in this case he update only the ID 14)
i use this code:
} else {
echo 'Message has been sent';
$sql="UPDATE news SET STATUS='S' WHERE ID='".$item['0']."'";
Array:
Array
(
[0] => Array
(
[0] => 49
[1] => sd
[2] => ds
[3] => ds
[4] => 2015-01-20
[5] => mail@mail.it
)
[1] => Array
(
[0] => 8
[1] => Test
[2] => 187
[3] => 000000
[4] => 2015-01-21
[5] => mail@mail.it
)
[2] => Array
(
[0] => 14
[1] => Test
[2] => 5500
[3] => 555555
[4] => 2015-01-17
[5] => mail@mail
)
)