I've got table: platforms
Inside this table columns: 1. first_scan_date, 2. next_scan_date 3. scan_frequency
Now, I've got such array from the web based formular:
Array
(
[scan_freq1] => Array
(
[0] => 0
[1] => 0
[2] => 0
[3] => 0
)
[first_scan_date1] => Array
(
[0] => 0000-00-00
[1] => 0000-00-00
[2] => 0000-00-00
[3] => 0000-00-00
)
[next_scan_date1] => Array
(
[0] =>
[1] =>
[2] =>
[3] =>
)
)
How can I update it in database using things that came from array in PHP? I guess I need smth like foreach, but have no clue...
UPDATE platforms (first_scan_date,next_scan_date,scan_frequency) VALUES (?,?,?)...
Help?