SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member edpudol's Avatar
    Join Date
    Oct 2004
    Location
    philippines
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help please can't save to mysql

    I am trying to save datas with quotes and special characters to my mysql database keep getting errors.

    for example this data....
    <a href="http://www.tomaysite.com">this is a long text with ' and a " on the text</a>
    when I am trying to save this kind of data in my database I got mysql error but if the data have no double quote or sigle quote no problem.

    I tried to use addslashes but still got same error...

    Any way to solve this problem? Thanks
    Visit us at lexorsoft.net , if you need SEO related services

  2. #2
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you show us the relevant code and what's the full error message? (be sure to use mysql_error


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •