标签:
快速解析
extract
调试打印
var_dump
print_r
mysqli
http://php.net/manual/zh/book.mysqli.php
<?php $_mysqli = new mysqli(‘localhost‘,‘root‘,‘abc123‘); $_mysqli->select_db("tablename"); if($_mysqli->connect_errno) { //... echo "数据库连接出错,错误信息是:".$_mysqli->connect_error; exit(); } $_mysqli->set_charset(‘utf8‘); $_Result = $_mysqli->query("sql"); while($_rows = $_Result->fetch_array()) { //...神奇点,每次打印一条,每次运行一次函数会将指针下移 print_r($_rows); } ?>
标签:
原文地址:http://www.cnblogs.com/CyLee/p/5487903.html