Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ksj'@'localhost' (using password: NO) in /home/ksj/public_html/cp/SuperSimpleBlogScriptV2_5_7/setup-complete.php on line 2
这是文件setup-complete.php
<?php
$site = mysql_real_escape_string($_GET['site']);
$page = mysql_real_escape_string($_GET['page']);
$path = mysql_real_escape_string($_GET['path']);
//destroy the setup file
if(!unlink("$path/setup.php")){ /* try windows */ unlink("$path\setup.php"); }
header("Location: http://www.supersimple.org/success.php?link=$site/$page");
?>
答案 0 :(得分:2)
mysql_real_escape_string
需要一个隐式创建的连接,如果没有活动连接。
使用
首先使用正确的凭据打开连接mysql_connect($server, $username, $password);