Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function data_implode ADD LIKE #75

Closed
tianyiw2013 opened this issue Feb 21, 2014 · 1 comment
Closed

function data_implode ADD LIKE #75

tianyiw2013 opened this issue Feb 21, 2014 · 1 comment

Comments

@tianyiw2013
Copy link
Contributor

SELECT * FROM "mo_uv" WHERE "uid" = '1' AND "number" LIKE '%38%' LIMIT 0,20

$where = array();
$id && $where['uid'] = $id;
if ( $type == 2 ) {
$where['hasPaid'] = '1';
}else if ( $type == 1 ) {
$where['hasPaid'] = '0';
}
if ( $number ) {
$where['number[LIKE]'] = $number;
}
$list = db()->select("table", '*',array('AND'=>$where,'LIMIT'=>array(0,20)));


preg_match('/([\w.]+)([(>|>=|<|<=|!|<>|LIKE)])?/i', $key, $match);

} else if ( $match[3] == 'LIKE' ) {
$wheres[] = $this->column_quote($match[1]) . ' LIKE ' . $this->quote('%' . $value . '%');

@carlosmellado
Copy link

+1

@catfan catfan closed this as completed Feb 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants