Jump to content

Fix quotes in php


vj5

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...