Vinod Posted September 25, 2009 Posted September 25, 2009 Hello Guys, In Php page I am displaying the content from FileaMaker database. Where as the [color:red]part of formated text in Filemaker field which is stored is lost on php page. I need to get the formatted text displayed in php page as it is in FileMaker field. Awaiting for ur replay
jonathanstark Posted September 25, 2009 Posted September 25, 2009 If I understand you correctly, you have a text field with rich text formatting and you want the formatting to bleed through to the web. Let's say your text field is called "Description" - in FileMaker, make a new calc field called "Description CSS" with the following formula: GetAsCSS ( Description ) Then, add Description CSS to the FileMaker layout that you are pointing your PHP query at. Then, in the PHP page where you are doing the query, you'll need to change this: $record->getField('Description'); to this: $record->getFieldUnencoded('Description CSS'); HTH, j
Vinod Posted September 30, 2009 Author Posted September 30, 2009 (edited) Awesome! It works.... Thankyou JothanStark. Edited September 30, 2009 by Guest
jonathanstark Posted September 30, 2009 Posted September 30, 2009 I love it when a plan comes together ;-)
Recommended Posts
This topic is 5533 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now