I\'m storing a list of items in a serialized array within a field in my database (I\'m using PHP/MySQL).
I want to have a query that will select all the records that
foreach( $result as $value ) { $hour = unserialize( $value->meta_value ); if( $hour['date'] < $data['from'] ) { $sum = $sum + $hour['hours']; } }