This topic is locked

display problem help needed

7/16/2007 11:35:08 PM
PHPRunner General questions
J
jetacera author

I recently used PHPRunner 4.0 to build both a front end and a back end for a MySQL database on a Linux server. The front end did not require a login or any editing by site visitors but the back end needed a login for the site owner to be able to edit the text on the site pages. I have some very basic understanding of PHP. Everything functions fine with one exception.
I have drawn data from a database before using an ECHO for the needed fields on the page. This allowed any HTML coding entered into the field to be drawn up and read correctly by the browser. My current PHPRunner created front end (needed for pulling up more complex data combinations and displaying records in 2 columns) pulls up the data, but it displays any HTML tags and coding entered into the database as text.
How do I fix this problem? I set up the back end with the Basic Rich Text Editor on text area fields throughout the database. The data shows up perfectly (converting the HTML) on pages where I set up the page using ECHO, but anything entered using the RTE other than straight text (bulleted lists, tables, HTML code entered under View Source, etc.) is pulled up as text.
Is there a way to use ECHO on the template pages? What is the correct syntax? The current tag that pulls up the data from a field called "home_brieftext" on the template page is
{$row.1home_brieftext_value} (or {$row.2home_brieftext_value}
How can I convert this to an ECHO? (I would normally enter <? echo "$home_brieftext"; ?> except, like I said, I am pulling up the records in 2 columns)
Is there another way to prevent the data from being read as text?
Thank you for any help you can provide.

JET

J
Jane 7/17/2007

Jet,
select HTML for this field on the "View as" settings dialog on the Visual Editor tab.