Closed tianyiw2013 closed 6 years ago
function where_clause($where) if (isset($where['AND']))
suggest: if (!empty($where['AND']))
My code: <?php $where = array(); $uid&& $where['uid'] = $uid; $type && $where['type'] = $type ; $list = db()->select("table", '*',array('AND'=>$where));
This looks to be fixed: https://github.com/catfan/Medoo/blob/master/medoo.php#L429
function where_clause($where) if (isset($where['AND']))
suggest: if (!empty($where['AND']))
My code: <?php $where = array(); $uid&& $where['uid'] = $uid; $type && $where['type'] = $type ; $list = db()->select("table", '*',array('AND'=>$where));