duanhuan6336 2014-03-26 15:19
浏览 36
已采纳

在php中将数据插入数据库

Helo dear friends. Please i have a probleme while inserting data whic contains cotes (",') into my database. Insertion ends when the first " is found my string.

My query is

"INSERT INTO table(Id,message,Date) VALUES(1,"here is come text",?) "
  • 写回答

1条回答 默认 最新

  • dongnang8192 2014-03-26 15:21
    关注

    be sure to use single quotes

    "INSERT INTO table (Id, message, Date) VALUES (1, 'here is come text', ?)"
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?