I have a array pulled from MySQL with the form below:
Array (
[0] => Array (
[id] => 0
[settings_name] => auto_email
[value] => 1
[date_added] => 0
[date_created] => 0
)
[1] => Array (
[id] => 0
[settings_name] => email_hour
[value] => 17
[date_added] => 0 [date_created] => 0
)
)
What I am trying to do is to change the array to this form:
Array (
[0] => Array (
[id] => 0
[auto_email] => 1
[date_added] => 0
[date_created] => 0
)
[1] => Array (
[id] => 0
[email_hour] => 17
[date_added] => 0
[date_created] => 0 )
)
I am trying to acces the 'auto_email' setting directly not by settings_name. Could someone help me out?