I'm hoping someone can help, there's a really obvious problem here but I've stared at it for too long and can't see it! Here the code:
http://www.strzelecki.co.uk/rsvp.phps
It's an RSVP script for my wedding website that pull the guests details from a database and allows them to amend them and tell me whether they are coming and then updates the database with this info, normally simple, but it refuses to do the update, I think I've done the loops wrong but a fresh pair of eyes will be able to spot that!
For reference the array(s) produced to update the data seem ok
Code:
Array
(
[last_name_upd] => Strzelecki
[first_name_upd] => Array
(
[0] => Andy
[1] => Sue
[2] => Rob
[3] => Chris
)
[id_upd] => Array
(
[0] => 7
[1] => 8
[2] => 9
[3] => 10
)
[surname_id] => Array
(
[0] => 2
[1] => 2
[2] => 2
[3] => 2
)
[address_upd] => An Address
[postcode_upd] => SA62 2PW
[telephone_number_upd] => 01234567891
[email_address_upd] => a@a.com
[song_artist] => example
[song_name] => example name
[updateinvite] => Submit
)
Cheers!