Hi all,
I'm trying to figure out how to update values I have in an array. I'm a bit stuck and hope someone can advise.
I've read about all sorts of bits but I'm stuck, I dont really understand associative so thought I'd post an example of my code for someone to hopefully assist..
so, if I have a table $fees, which is filled from a select, for example..
select * from `cases_fees`. "contains fields for id, type, amount and others
now I want to do is foreach through that table and update a field called `amount`.
but I cant understand the foreach >= as key part. what is a key and what isn't ? (I know what the keys of the db table arem but that's not the same eh?)
I'm fine with normal foreach, but I cant update back to the array so I need to find out how to be able to set valus back into $fees[`amount`]
hope someone can point me in the right direction please...
Ted