标签:span sql cal encode color use logs return []
<?php class DBDA { public $hostname="localhost"; public $username="root"; public $mima="123"; public $dbname="zhousan"; public function Query($str,$t=0) { $obj=new MySQLi($this->hostname,$this->username,$this->mima,$this->dbname); $fanhui=$obj->query($str); if($t==0) { return $fanhui; } else { while($m=$fanhui->fetch_row()) { $attr[]=$m; } return json_encode($attr); } } } ?> DBDB.class.php
标签:span sql cal encode color use logs return []
原文地址:http://www.cnblogs.com/ordinaryk/p/6696460.html