I just moved a site from a host with mySQL 4 to one with mySQL 5. One thing that stopped working was the ability to accept characters like apostrophes in text fields. So when users try to add events to the calendar, they get an error message if the text has even one apostrohe
Is this the correct way to fix it?
This is the original code that no longer works:Code:string htmlspecialchars ( string $string [, int $quote_style [, string $charset [, bool $double_encode ]]] )
Or is there a better way? The host techs told me it was impossible, but this seems ludicrous to me. It is a community events calendar and the users have been able to do it no problem for 8 years (until now), with the above code. I doubt the developers would make mySQL worse as it gets older. Any ideas?Code:<?php echo htmlspecialchars ( $description ); ?>
There are problems with the phpMyAdmin as well but I'll ask about that later.
Thanks in advance for your help. erin



Reply With Quote


Bookmarks