PHP验证码检验

$verify_status = $this->check_verify($ver_code);    //$this -> ,的作用?和 check_verify();函数在哪儿定义的?
        if (!$verify_status) {
            $this->error('验证码输入错误或已过期!');
            exit;
        }

 $this是指类的具体的实例化对象,此处调用的是类中的函数check_verify();

$condition['login_name'] = array('eq', $user_name);    //

 eq 等于
neq 不等于
gt 大于
egt 大于等于
lt 小于
elt 小于等于
like LIKE
between BETWEEN
notnull IS NUT NULL
null IS NULL

egf 是表示数据库的字段比较,而非字符串比较
例如:$map['name']  = array('eq','label'); 和$map['name'] = array('eqf','label');分别代表 name = 'label' 和 name = label

 

posted @ 2015-03-19 17:08  星夜梦  阅读(415)  评论(0编辑  收藏  举报