我设法进入phpMyAdmin并创建了一个表。然后,我用他们的用户名&创建了用户。密码。请注意,phpMyAdmin是从免费的网站托管区域运行的。它看起来已经完成,但我收到此错误消息:
拒绝访问用户“apache”@“localhost”(使用密码:NO)
<?php
@session_start();
include(".login.php");
print_r($conf);
$con = mysql_connect($conf['db_hostname'], $conf['$username'], $conf['1000']) or die (mysql_error());
mysql_select_db("usersA", $con);
$prof = '000';
//$prof = $_GET['profile'];
$result = "SELECT * FROM usersA WHERE id = '$user_id'";
$q = mysql_query($result, $con);
?>
答案 0 :(得分:0)
尝试正确命名文件..
include("login.php");
代替include(".login.php");
是什么
print_r($conf);
使用
$con=mysql_connect("ip(like http://1.1.1.1)","user_name","password");