Blogger Information
Blog 1
fans 0
comment 0
visits 484
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
mysql常用.sql
爆肝混世大魔王-流笙 第五人格服务
Original
484 people have browsed it

mysqli_query( $conn, "set names 'utf8'" ); //设置字符编码


mysqli_close( $conn );//关闭连接


$conn = new mysqli( 'localhost', '库名', '库密码' );// 创建连接

if ( $conn->connect_error ) {

  die( "连接失败: " . $conn->connect_error );

}// 检测连接


$result = mysqli_query( $conn, $sql );

$row = mysqli_fetch_assoc( $result );//查询语句


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post