I’m currently in work developing a small news system for a client of their’s, and I’ve been getting along well until I came across converting a value fetched from the database, using a while() loop. Basically, I use the while loop to select the content from the database, and then I can print the page. Unfortunately, this is filled with unnecessary code that the reader doesn’t need to see (i.e. ‘nn’).
So, I attempted to use str_replace(); to replace ‘nn’ with line-breaks… but to no avail. And I’m still pretty much struggling on this, and any help on it would be great.