dtt5830659 2009-10-30 16:41
浏览 8
已采纳

mysql_escape_string图片网址问题

I have a text-area where text and an image url is entered.

Text is formatted like this:

         my best friend's email is ............
         etc
         http://www.google.com/intl/en_ALL/images/logo.gif

After the form is submitted, I use mysql_escape_string() to store the value in my database

My problem is image the url has changed.

How can I store this type of data in mysql using php with the correct (original, unaltered) image url?

-Thanks

  • 写回答

3条回答 默认 最新

  • dsfs23434 2009-10-30 16:48
    关注

    Use mysql_real_escape_string instead, that one you're using is deprecated and its use is discouraged.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 有人能看一下我宿舍管理系统的报修功能该怎么改啊?链表那里总是越界
  • ¥15 cs loadimage运行不了,easyx也下了,没有用
  • ¥15 r包runway详细安装教程
  • ¥15 Html中读取Json文件中数据并制作表格
  • ¥15 谁有RH342练习环境
  • ¥15 STM32F407 DMA中断问题
  • ¥15 uniapp连接阿里云无法发布消息和订阅
  • ¥25 麦当劳点餐系统代码纠错
  • ¥15 轮班监督委员会问题。
  • ¥20 关于变压器的具体案例分析