读书人

php操作mysql示范备忘录

发布时间: 2013-03-10 09:38:39 作者: rapoo

php操作mysql示例备忘录

1. 一般的insert

$query = "SELECT name, points FROM Profile WHERE 1 ORDER BY points DESC LIMIT $_from, $_to";if ($result = $this->db->query($query)) {while ($row = $result->fetch_row()) {$ret = array ("name" => $row[0],"points" => $row[1],);}$result->close();}



读书人网 >Mysql

热点推荐