数据库账号密码正确的可是
Re数据库账号密码正确的可是
求解决
-------------------------
Re数据库账号密码正确的可是
补文字 if(defined('SAE_ACCESSKEY'))
$mysql=require('../Application/Common/Conf/saedb.php');
else
$mysql=require('../Application/Common/Conf/db.php');
$dbhost=$mysql['DB_HOST'].':'.$mysql['DB_PORT'];
$dbuser=$mysql['DB_USER'];
$dbpassword=$mysql['DB_PWD'];
$dbmysql=$mysql['DB_NAME'];
if($con = mysql_connect($dbhost,$dbuser,$dbpassword)){
mysql_select_db($dbmysql, $con);
}else{
exit('数据库链接失败!');
}
mysql_query('set names utf8');
$tableqz=$mysql['DB_PREFIX'];
$result=mysql_query('select * from {$tableqz}webconfigs');
while($row = mysql_fetch_array($result)){
$config[$row['vkey']]=$row['value'];
}
if($_GET['cron']!=$config['cronrand']){
exit('监控识别码不正确!');
赞0
踩0