时间:2021-07-01 10:21:17 帮助过:28人阅读
public function count(){ $db=new Db(); $db->connect(); $query="select count(*) from wenzhang"; $shuju=$db->query($query); $db->close(); return $shuju; }
public function query($query) //发送sql语句 insert update select { $this->result=mysql_query($query); }