Hi guys
i am hoping that someone can give me a pointer on how to get data from an array into a mysql data base. the Array looks something like this.
array (
0 =>
array (
'id' => '4024',
'town_name' => 'BIRKENHEAD',
'active' => '1',
),
1 =>
array (
'id' => '4023',
'town_name' => 'CHESTER',
'active' => '1',
),
2 =>
array (
'id' => '3859',
'town_name' => 'ELLESMERE PORT',
'active' => '1',
),
3 =>
array (
'id' => '4065',
'town_name' => 'FLINT',
'active' => '1',
),
4 =>
array (
'id' => '3961',
'town_name' => 'LIVERPOOL',
'active' => '1',
),
5 =>
array (
'id' => '3962',
'town_name' => 'MOLD',
'active' => '1',
),
6 =>
array (
'id' => '3958',
'town_name' => 'ST HELENS',
'active' => '1',
),
)
I get the array from a CURL session from one of the Regiments computers. It is of no fixed length. All i need is a pointer in how to extract the data and pass it to a mysql database. Thanks in advance