First if you are looking for a way to search a multi-dimensional array why?
It's easier and less resource intensives if you search via a db query..
but if you really need to do this in code then the following is something you might need... ADODB does not do this by default so you have to build the array yourself...
$items = "";
$rs = $db->Execute("SELECT id, name, effect FROM items");
while( !$rs->EOF ) {
$items[$rs->fields['name'] = array("id" => $rs->fields['id'], "name" => $rs->fields['name'], "effect" => $rs->fields['effect]);
$rs->MoveNext();
}
Didn't run that though the debugger but you should be able to figure it out.. You now have an array with the key of name from the db.. If you want the id as the key then just change $items[$rs->fields['name'] to $items[$rs->fields['id']