close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Problems with text from database not displaying correctly

Thread began 2/04/2021 8:48 am by John | Last modified 2/04/2021 12:29 pm by Ray Borduin | 556 views | 2 replies |

John

Problems with text from database not displaying correctly

Hi,
I have recently purchased MySqli Behaviours for my elderly copy of Dreamweaver CS6 and so far doing ok. I am rebuilding my existing website to run on newer versions of PHP & MySql/i but having problems in correct display of the text from the database on the screen. It is showing the <br/> tags and not returning a new line. (see attachment) I think that it is down to PHP code that is at the top of the old site (put in by Dreamweaver) but not the new. (see attachment). Can anyone advise or point me towards an easy to understand guide on how to add this code in the new format.
Many thanks in advance for your help.
John

Attached Files
PHP code.txt
sample text.txt
Sign in to reply to this post

Ray BorduinWebAssist

It has built in cross site scripting protection to prevent html from displaying. To override it you have to update the $Recordset->getColumnVal("column") reference on the page and change it to: $Recordset->getColumnVal("column",false)

Adding the "false" at the end tells it to turn off the cross site scripting protection and display html from the database.

Sign in to reply to this post
Did this help? Tips are appreciated...

John

Thank you so much. Everything I was looking online at was in totally the wrong direction.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...