$dbc=mysqli_connect(HOST,USER,PW,DATABASE);mysqli_query($dbc,'set names utf8');$result=mysqli_query($dbc,'select * from table');mysqli_close($dbc);while($row=mysqli_fetch_array($result)){ //$row['id']...}
本文共 256 字,大约阅读时间需要 1 分钟。
$dbc=mysqli_connect(HOST,USER,PW,DATABASE);mysqli_query($dbc,'set names utf8');$result=mysqli_query($dbc,'select * from table');mysqli_close($dbc);while($row=mysqli_fetch_array($result)){ //$row['id']...}
转载于:https://my.oschina.net/soitravel/blog/131258