News Script Formatting Help


#1

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?


#2

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


#3

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();?


#4

you need to escape certain characters. Look here
http://www.php.net/manual/en/function.m … string.php and here http://www.php.net/manual/en/function.m … string.php for more information.


#5

That’s the one! Thanks!