javascript - Correct way to encode JSON and store in MYSQL? -
I am encoding my javascript ARX using JSON.stringify in javascript, send php to them via asxx Before mysql (btw) - $ i_OST, my example looks like an array (1 item)
  [\ "shon thomson \"]    And after mysql_real_escape_string it looks like  
  [\\\ "Shawn Thomson \\\"]    ends in mysql like  
  [\ "Shawn Thomson \"]    What is the right way to do this, this It ends ( 
  ["Sean Thomson"]   ?  
 Thank you for your help.  
 
  Try using mysql_real_escape_string instead.   
 
Comments
Post a Comment