摘要:
非select 语句(没有结果集的) 1.建立连接数据库 $mysqli=new mysqli("localhost","root","","sqldb"); 2.判断 if(mysqli_connect_error()){ echo "连接数据库失败".mysqli_connect_error() 阅读全文
摘要:
<?php$mysqli = new mysqli("localhost", "my_user", "my_password", "world");/* check connection */if (mysqli_connect_errno()) { printf("Connect failed: 阅读全文