-3
我想使用户配置文件公开或私人,我已经用PHP编写了一些东西。 但我收到以下错误:mysql_real_escape_string()无法正常工作?
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'gooyanet'@'localhost' (using password: NO) on line 7
而且也:
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established on line 7
这里是my code的链接。
,如果你帮我与这将是伟大的...
这与mysql_real_escape_string无关,你的MySQL登录凭证不正确,或者你的用户没有该数据库的权限。 – MrCode 2014-10-19 15:02:55
这是因为您没有配置可用的数据库连接。 – Quentin 2014-10-19 15:03:05
问题可能确实与您的连接凭据有关,请检查它们。并停止使用mysql_real_escape_string,而是使用预处理语句。 – gd1 2014-10-19 15:03:11