国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Database Connectivity

1, create a new conn.inc.php file:

Define the database connection constants as follows:

<?php
define("HOST",'localhost');
define("USER",'root');
define("PWD",'root');
define("DBNAME",'onecms');

2, create a new mysqli.php file:

<?php
include 'conn.inc.php';
$mysqli=new mysqli(HOST,USER,PWD,DBNAME);
if($mysqli->connect_errno){
    die('數(shù)據(jù)庫鏈接出錯(cuò)'.$mysqli->connect_error);
}

The next time you connect to the database, you only need to import the mysqli.php file.

Continuing Learning
||
<?php echo "mysqli的用法";
submitReset Code