mysql_real_escape_string出错?

QCB181 2009-09-08 01:35:33
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in E:\工作\企业模板\wwwroot\test.php on line 18

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in E:\工作\企业模板\wwwroot\test.php on line 18

提示这样的错误

代码这样的

$str="123445676'-#";
print "<br>";
echo get_magic_quotes_gpc();
echo mysql_real_escape_string($str);
...全文
266 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
fangyuan303687320 2009-09-12
  • 打赏
  • 举报
回复
连接数据库
YHL27 2009-09-08
  • 打赏
  • 举报
回复
sf!!
dzxccsu 2009-09-08
  • 打赏
  • 举报
回复
连接到数据库了吗?
phpboy 2009-09-08
  • 打赏
  • 举报
回复
没有进行数据库连接
xuzuning 2009-09-08
  • 打赏
  • 举报
回复
需要先连接到mysql
babysc1 2009-09-08
  • 打赏
  • 举报
回复
importDB 导入数据
babysc1 2009-09-08
  • 打赏
  • 举报
回复
PS:你没连接数据库啊!

20,359

社区成员

发帖
与我相关
我的任务
社区描述
“超文本预处理器”,是在服务器端执行的脚本语言,尤其适用于Web开发并可嵌入HTML中。PHP语法利用了C、Java和Perl,该语言的主要目标是允许web开发人员快速编写动态网页。
phpphpstorm 技术论坛(原bbs)
社区管理员
  • 开源资源社区
  • phpstory
  • xuzuning
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧