Search in array query result in php/mysql

InsideSin

New Member
I have the mysql results (\[code\]$date_options\[/code\]) as below\[code\]Array ( [0] => stdClass Object ( [id] => 4 [start_date] => 2010-09-29 ) [1] => stdClass Object ( [id] => 13 [start_date] => 2010-10-06 ))\[/code\]I need to be able to search in the "id" field if some value existed. I tried this and it didn't work:\[code\]array_search($event_id, $date_options, true)\[/code\]\[code\]$event_id\[/code\] is has the id value. I only want to look in id and not in start_dateHow to solve this?Thanks
 
Back
Top