close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

code displayed

Thread began 5/06/2019 3:26 pm by Sweens | Last modified 5/07/2019 5:15 pm by Ray Borduin | 72 views | 5 replies |

Sweens

code displayed

Hi Ray

I'm not sure if this is related to WA or the server in some way.

All my site pages are displaying code - e.g. www.rotary-site.org the main body of the page is done using the html editor, but the facebook feed, which os also displaying code, does not use the html editor.

Puzzled!

Hope you may have some ideas.

UPDATE - I've removed all the other content, just leaving the 'about' field from the recordset, and it's the code that's being shown on https://www.rotary-site.org/test.php?su=websites-for-trf

I've checked the database, and that field only contains that code - it's as if there's some encoding taking place that shouldn't be happening.

Cheers
Chris

Attached Files
homepage.php
Sign in to reply to this post

Sweens

Hi Ray

I've solved it - the mysqli included files were corrupt in some way. I copied fresh ones from another site and everything's now OK.

Cheers
Chris

Sign in to reply to this post

Ray BorduinWebAssist

The latest versions of rsobj.php include Cross Site Scripting protection. This will display html code instead of rendering it on the page. To override that and display html, you have to change your reference on the page from:

<?php echo($rsTopNav->getColumnVal("SiteDesc")); ?>

to:

<?php echo($rsTopNav->getColumnVal("SiteDesc",false)); ?>

The extra "false" argument tells it to ignore cross site scripting and render any code stored.

Sign in to reply to this post

Sweens

Hi Ray

Thanks for the explanation - does the latest version of DA include the 'false' automatically when adding a field to a page, or does it need to be added manually to every instance?

Cheers
Chris

Sign in to reply to this post

Ray BorduinWebAssist

It needs to be added manually to any instance where you want html code displayed from the database. The default is Cross Site Scripting protected. You have to manually disable the protection when you don't want it.

Sign in to reply to this post

Sweens

Thanks for the explanation.

Cheers
Chris

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...