Jump to content

remove surrounding single quotes function


dadamssg87

Recommended Posts

I'm using the codeigniter mvc framework and there's an escape function to use before adding the data to the database. This function adds single quotes around the string of data. Is there any already existing php function or does anyone know how to code a function that strips ONLY the surrounding single quotes?

If the quotes are actually being inserted into the DB, then the strings are getting enclosed in quotes twice, and the inner set is being \escaped somehow. You need to find out why, and correct that problem instead of masking it.

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.