vj5 Posted March 19, 2008 Share Posted March 19, 2008 I am trying to fix quotes while entering data and as well as updating the same data. I am using stripslashes while entering data. when updating the data, it is not working. Can someone please help? Link to comment Share on other sites More sharing options...
real_illusions Posted March 19, 2008 Share Posted March 19, 2008 Post your code that are you using at the moment, so we can see if theres mistakes and/or improvements to be fixed/madeYou may also find this useful - http://uk3.php.net/manual/en/function.stripslashes.php Link to comment Share on other sites More sharing options...
vj5 Posted March 19, 2008 Author Share Posted March 19, 2008 here is my code: $qry = "Insert into `tablename`( `provider`,`desc`)Values ('".mysql_real_escape_string(stripslashes($cprovider))."','".mysql_real_escape_string(stripslashes(rtrim($cdesc)))."')"; Link to comment Share on other sites More sharing options...
justsomeguy Posted March 19, 2008 Share Posted March 19, 2008 Print $qry to see what it is. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.