Black Friday Sale! Use promo code: DMXBF20 valid only for hours

DMXzone Database Connector PHP Support Product Page

Answered

HTML in database not being written

Asked 20 Dec 2019 15:16:21
1
has this question
20 Dec 2019 15:16:21 Dave J posted:
I'm connecting to a database and displaying content on my website fine using Database Connector PHP but any HTML content in the database is being displayed as text rather than being written as HTML so <br> is showing as <br> instead of a return. Any Suggestions?

Replies

Replied 06 Jan 2020 16:48:31
06 Jan 2020 16:48:31 Dave J replied:
Can anyone help with this? I forgot to mention that the database content displayed fine when using Dreamweaver database connections so does something have to be done differently with DMX?
Replied 07 Jan 2020 08:27:46
07 Jan 2020 08:27:46 Teodor Kuduschiev replied:
Hello,
Select the element you want to display your text in, select dynamic attributes > display > inner HTML.
This will render the HTML on the page.
Replied 08 Jan 2020 10:35:42
08 Jan 2020 10:35:42 Dave J replied:
Thank you for the reply, that sounds like exactly what I've been looking for but I can't find what you are describing. Do I have to buy another extension like "HTML5 Data Bindings Formatter"?
Replied 08 Jan 2020 10:37:29
08 Jan 2020 10:37:29 Teodor Kuduschiev replied:
No, that's directly available under Dynamic Attributes in the App Connect panel.
Replied 22 Jan 2020 17:18:55
22 Jan 2020 17:18:55 Dave J replied:
Hello Teodor. Sorry about the delay, first chance I've had to get back to this.

DMX Zone App Connect can not be used on the same page as HTML 5 Data Bindings.

Do I have to recreate my pages with App Connect instead of HTML 5 Data Bindings? Is there no way of storing HTML in databases if using HTML 5 Data Bindings?
Replied 23 Jan 2020 08:25:40
23 Jan 2020 08:25:40 Teodor Kuduschiev replied:
You can't use App Connect with HTML 5 Data Bindings. App Connect has been released as a successor of the HTML5 Data Bindings back in the beginning of 2017.

With Data Bindings you just need to select your binding, then open the dropdown on the left side of the insert button and select the binding type:

Reply to this topic