fetch——row
Posted 张凯::get("新技能")
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了fetch——row相关的知识,希望对你有一定的参考价值。
<?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
以上是关于fetch——row的主要内容,如果未能解决你的问题,请参考以下文章