Topshed Posted June 8, 2008 Share Posted June 8, 2008 Hi, I am running PHP5.0.41 and MySQL 4.1.15 A problem has arisen when I want to put the ascii code for 1/2 or 1/4 , when I am editing my database on line.I thought I could use ½ but ½ is what comes up on screen rather than 1/2 it should be I suspect I may not be escaping properly or it cannot be done with this combination of software >> Please Help Thanks Roy.. Quote Link to comment Share on other sites More sharing options...
MiCR0 Posted June 8, 2008 Share Posted June 8, 2008 I believe you check the output of your code and look for ½ with in a string using str_replace and if it is there replace it with $letter = chr(171); $letter = chr(172); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.