Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO)

前端 未结 5 638
迷失自我
迷失自我 2021-01-18 21:18

When is use the following code without mysql_real_escape_string, works fine. I simply trying to grab a text string that may have apost. from an input form and format it to p

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-18 22:12

    You must connect with database first before using Warning: mysql_real_escape_string()

提交回复
热议问题