query($"/> query($">
获取表内总数。
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> public function count(){ $db=new Db(); $db->connect(); $query="select count(*) from wenzhang"; $shuju=$db->query($query); $db->close(); return $shuju; }
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public function query($query) //发送sql语句 insert update select { $this->result=mysql_query($query); }