<? class Accessdbm { var $count = 0; var $values = array(); var $file = ""; var $error = ""; var $exists = false; var $static = false; var $exact = false; var $dbm;
// older version of PHP can't do the 'new classname(args)' // use initilize() if this is the case.
// returns the key function find_val ($search) { $this->exact = false;
$DBase = $this->get_all(); if(empty($DBase)) { error_log("error DBase is empty $db->error",0); r
eturn false; } while ( list ( $key, $val ) = each ($DBase) ) { if($search == $val) { $this->exact=true; return $key; } else { // strip the first whitespace char and // everything after it.