📄 mysql.php
字号:
<?
################################################################################
# phpQuestionnaire Version 2.2 #
# Copyright 2003-2005 chumpsoft, inc. March 28, 2005 #
################################################################################
# SCRiPTMAFiA 2005 - THE DiRTY HANDS ON YOUR SCRiPTS #
################################################################################
#-->> Mysql Setup
#
# This file is modified by install.php, but must be writable by the web server.
# You may also fill in the username, password and database for your MySQL
# server if you wish:
$host = "localhost";
$user = "";
$password = "";
$database = "";
if (!mysql_pconnect($host, $user, $password) || !mysql_select_db($database)) {
if (!$GLOBALS["inError"]) {
if ($GLOBALS["inAdmin"]) {
header("Location: ../error.php?errormsg=DBConnection");
}
else {
header("Location: error.php?errormsg=DBConnection");
}
exit();
}
}
else {
$mqadmin = mysql_query("select * from phpQAdmin limit 1");
$GLOBALS["phpQAdmin"] = mysql_fetch_array($mqadmin);
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -