发布v2.6.6版本
This commit is contained in:
@@ -279,13 +279,13 @@ abstract class mysql{
|
||||
return $this->getall($sql);
|
||||
}
|
||||
|
||||
public function getall($sql, $call=null)
|
||||
public function getall($sql, $call=null, $cans=array())
|
||||
{
|
||||
$res=$this->query($sql);
|
||||
$arr=array();
|
||||
if($res){
|
||||
while($row=$this->fetch_array($res)){
|
||||
if($call != null)$row = $call($row);
|
||||
if($call != null)$row = $call($row, $cans);
|
||||
$arr[] = $row;
|
||||
$this->count++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user