Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

php replace? need help.


FlyingMonkey

Recommended Posts

Posted

I am trying to escape any quotation marks in the actual fields by making them double. So, for example, product 12345 titled a sample product with a description of a "test" product, would look like this:

 

"12345","a sample product","a ""test"" product"

 

str_replace("\"", "\"\"", $des); //doesn't seem to work

 

any help is appreciated. thank you.

Most likely your question has been answered, please do a search first.

Posted
I am trying to escape any quotation marks in the actual fields by making them double. So, for example, product 12345 titled a sample product with a description of a "test" product, would look like this:

 

"12345","a sample product","a ""test"" product"

 

str_replace("\"", "\"\"", $des); //doesn't seem to work

 

any help is appreciated. thank you.

scratch that... the code actually works. excel just takes the quotations out.... =P

Most likely your question has been answered, please do a search first.

Archived

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

×
×
  • Create New...