<?
include("mysql.class.php");
$db->Connect();
$parserfunctions["search"] = '$string = "%".preg_replace(\'/\s+/\',\'%\', $string)."%";'; // The variable $string is default.
$search["search:name,nickname"] = "mary";
$search["<=birth_date"] = "1980";
$search[">=birth_date"] = "1970";
$search["=sex"] = "female";
$search["=marital_cond"] = "single";
$setSpouses = $db->SelectSet("people", "*", MYSQL::SearchCond( $search, $parserfunctions ) );
?>
|