include '/config.inc.php';
$mysqli = new mysqli(DATABASE_HOSTNAME, DATABASE_USERNAME, DATABASE_PASSWORD, DATABASE_DATANAME);
if ($mysqli->connect_errno) {
printf("不能连接数据库,错误是: %s\n", $mysqli->connect_error);
$sql = "select * from Company_Info";
if ($result = $mysqli -> query($sql))
$row = $result -> fetch_array(MYSQLI_ASSOC);
$CompanyName = $row['CompanyName'];
echo "Copyright © 2017-" . date("Y") . " " . $CompanyName . " 版权所有.";