查看文件: db_connect.php
大小: 661 字节
类型: application/octet-stream
<?php /* Database connection start */ $servername = "localhost"; $username = "root"; $password = "loskyoc"; $dbname = "newskybni"; //$hostname_BE2 = "localhost"; //$database_BE2 = "newskybni"; //$username_BE2 = "root"; //$password_BE2 = "loskyoc"; //$BE2 = mysql_pconnect($hostname_BE2, $username_BE2, $password_BE2) or trigger_error(mysql_error(),E_USER_ERROR); $conn = mysqli_connect($servername, $username, $password, $dbname) or die("Connection failed: " . mysqli_connect_error()); //print_r($conn); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } ?>
保存
取消
返回文件列表