News Script Formatting Help

I’ve made myself a news script which works, but am womdering about formatting - eg. apostrophies being replaced with question marks etc. How can I prevent things like this happening?

I am not sure what you mean? Do you mean they being changed by PHP or is someone else capable of changing them?

Sometimes when things are added to databases they look funny on exit (not in my experience, but I’ve heard it mentioned). Isn’t it something like AddSlashes();?

you need to escape certain characters. Look here … string.php and here … string.php for more information.

That’s the one! Thanks!

Sponsor our Newsletter | Privacy Policy | Terms of Service