public static function Escape($val) { if (self::$db === null) { self::$db = self::Open(); } return esql_escape($val); }