Jump to content

please help me with output problem


littlepeg

Recommended Posts

:) Hi everybody. I am a  new learner for php & MySQL and have one easy question would like to ask for advice.

  How can I store content in the database when they have some special symbols. For example, one thing I need to store is time: between 12:00am-15:00pm. when I output it using php, it becomes like 12:00am?15:00pm. In addition, the other one is "company's", and this output became company?s.

  Any help would be grately and appreciated.  :)

Link to comment
https://forums.phpfreaks.com/topic/52650-please-help-me-with-output-problem/
Share on other sites

are those quoes and dashes from a MS product?

 

if they were regular html characters, they should store fine, but if the were of the "smart" variety, the browser would have trouble displaying them and mysql wouldnt understand them either.

 

one you figure that out, use htmlentities and mysql_real_escape_string before storing data

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.