I am sorry if this confuses you.
I am running mysql and php on a windows 2000 box. I dont think that it will make a differece. Anyway. I am getting the output from mysql through an array. How ever the format that mysql is outputting is with actuall linebreaks.
(for example):
Hi there
that was just a line break.
(finsh example).
Most of the time that is fine. However I am tring to use javascript with it and I get errors on the pages that have the linebreaks. If there are no linebreaks everything works fine.
If you understand what I am asking please answer back.
I have tried nl2br() and htmlspecialchars(). They dont work.
Is there any way that I can do erreg()? also mysql is not show \n for the linebreak in the database like it used to before a format.