Paragraphs with dynamic text

Hi!
I have a database (mysql) and a field called article where I
upload my articles where I load it into my webpage dynamically.
However, the paragraphs in my field do not appear in my webpage -
my articles just appear as one large block of text. Here, take a
look
http://financestudent.cutpage.com/news.php
Is there a way to get my paragraphs in? Or better yet, a
better way of achieving creating a news section?
Cheers
Jamie

Assuming $content holds the text from that textarea, just do
this -
$content = nl2br($content);
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"kllwca" <[email protected]> wrote in
message
news:esroen$t2n$[email protected]..
> Would anyone happen to know how to make this work for
user entered data?
> I'm using a PHP database. The text area accepts
paragraphs, but when
> displayed, all of the breaks are removed.

Similar Messages

  • A drag and drop game with dynamic text response

    Hi,
    I am a teacher and my school has recently upgraded to Adobe Design Premium.  Our previous version was about 5 versions out of date.
    I teach A Level which requires students to create an Interactice Multimedia product.
    In the previous 6 years, I have taught students how to create simple drag and drop game with dynamic text responses.
    Since the upgrade to Actionscript 3.0 the dynamic text response has ceased working.
    When creating the game from scratch, I need to move to Actionscript 2.0 as 3.0 does not allow me to add actionscript to objects - I know and am sure that this is a better way of doing things, but I would prefer to keep working the way I am used to.
    I use a switch case statement which I have copied below to make the drag and drop work.  The objects I apply the code to work in that they can be dragged, however, my dynamic text box with a variable name of "answer" is no longer displaying the response when an answer is left on a dropzone (rectangle converted to a symbol and given an instance name).
    on(press) {
    startdrag(this);
    on(release) {
    stopdrag();
    switch(this._droptarget) {
      case "/dropzoneB":
       _root.answer="Well done";
       break;
      case "/dropzoneA":
      case "/dropzoneC":
       _root.answer="Hopeless";
       break;
      default:
       _root.answer="";
       break;
    Any help would be much apeciated.
    Thanks
    Adrian

    To drag in as3
    blie_btn is the instance of the object drawin on the stage. In AS3 you have to assign a even listener, in this case MOUSE_DOWN, and MOUSE_UP, as we want the drag to stop if the mouse is not clicked. Then we fire the functions, and tell the object to start drag.
    // Register mouse event functions
    blue_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    blue_btn.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    red_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    red_btn.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
    // Define a mouse down handler (user is dragging)
    function mouseDownHandler(evt:MouseEvent):void {
         var object = evt.target;
         // we should limit dragging to the area inside the canvas
         object.startDrag();
    function mouseUpHandler(evt:MouseEvent):void {
         var obj = evt.target;
              obj.stopDrag();
    if you want to make the text do what you want then something like this might work.
    In the function, you could add a text box onto the stage, give it a instance of something like outputText
    and then:
    outputText = ("Bla Bla Bla");
    (^Not sure if this will work exactly^)
    PS. I am currently a A-level student

  • Cannot use text:TextField with dynamic text in 3.2

    Hi,<br /><br />I have a multi-lang app which uses English LTR and Hebrew-Arabic RTL.<br />I am using a properties file for each language, and I get the<br />right item using resourceManager getString.<br /><br />Until 3.2 I had to reverse the order of the words in each item when using<br />Hebrew (or Arabic for that matter).<br /><br />In 3.2 with the new Text layout framework, this is not needed (MAJOR IMPROVEMENT) but I cannot get it to work with dynamic text only static text.<br /><br />of course all works great if I upgarde to flex 4.0, and use the textBox component, but I do not want to do that, so late in the development phase of the application.<br /><br />Here is a small mxml which shows the problem:<br /><br /><?xml version="1.0" encoding="utf-8"?><br /><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"<br />   xmlns:TryComps="appComponents.*" xmlns:text="flash.text.*"><br />   <mx:Style source="css/flashTypeStyles.css"/> <br />   <mx:Script><br />     <br />       import mx.resources.ResourceManager;<br />     <br />   </mx:Script><br />     <mx:Label text="Using text:TextField FIXED : THIS WORKS"/><br />        <!-- some text in hebrew if you dont see it you probably dont have it insalled --><br />     <text:TextField text="&#1506;&#1489;&#1512;&#1497;&#1514; &#1499;&#1493;&#1514;&#1489;&#1497;&#1501; &#1502;&#1497;&#1502;&#1497;&#1503; &#1500;&#1513;&#1502;&#1488;&#1500;"/><br />        <mx:Label text="Using text:TextField DYNAMIC :  THIS DOES NOT WORK"/><br />     <text:TextField text="{resourceManager.getString(Locales.LOCALE_BUNDLE,'BI_DIRECTIONAL_TEXT')}"/><br />     <br /></mx:Application><br /><br />Any one has an idea ???<br />The 'BI_DIRECTIONAL_TEXT' is an entry in the property file which has the same value as the static text above.<br /><br />The run time error I get is : <br />TypeError: Error #2007: Parameter text must be non-null.<br /><br />Thanks<br /><br />Eli7

    If you look thru the TextField class in the help documents you will find all of the properties you can manipulate.  One property is the wordWrap property which will keep you text from going off the side of the textfield.  Another is multiline which will allow the textfield to have more than one line.  And another is the autoSize property which will make your textfield adjust to fit the amount of text loaded into it.

  • Help with dynamic text and and css !

    My second question of the day.
    I'm trying to build a feature in my app in which the user can
    hide/reveal
    bolding and or
    italics and or
    underlining. The text is being loaded in from an xml file
    and I was thinking about styling it with css in order to get the
    underlining. My problem is that the only way I can think about
    pulling this off is to have a css style sheet that has a defined
    bold,italic and underline class defined- - then another one that
    just has a italic and underline class defined -- then another one
    that has just a bold and underline class defined . . . and so on
    and so on. You can see why I would prefer a much more streamlined
    system. Unfortunately my experience with dynamic text styling is
    somewhat limited. Hopefully someone can help me out here.

    Perfect. I knew it was some little snippet that I was
    forgetting. I made a temporary fix of creating a 0% alpha box over
    the button like a fake click area above the text, and that worked
    but I know that it was a half-arsed way of working around it.
    Thanks.

  • How to align text paragraphs with caption text boxes

    Hello,
    Im moving from QuarkXpress to InDesign, and Im setting up styles, templates, libraries, etc...
    The issue Im having is that when I add an image with a text caption box in one of the columns, the text that wraps around the caption text box, no longer aligns to the other columns, its off. I can't get it to realign to the other columns.
    Any help is appreciated.

    1. Is the leading of your caption the same as the body text? If not, you have to choose to align the top of the first line (slightly jarring) or bottom of the last line.
    2. It appears to me you have the caption vertically centred. That will make it far harder.
    To make it feasible to do manually, you can set the caption box text frame to start at offset "Leading", move the text frame to start exactly at the bottom of the image, and make sure all your images' heights are multiples of your leading. Group the caption frame and the caption box to make moving around easier.
    "Align to baseline" would be a good option, except that I find it too constricting on the entire rest of my designs (viz. the already observed "jump per entire line only"). One way around that is to set up your baseline grid to half, 1/3, or 1/4 of your leading. That way you have at least some control left over inter-paragraph whitespace, and you can still manually drag your images and have them snap to the closest "actual" baseline.

  • Alerts with "Dynamic Text". Alert ID is unknown.

    Hello,
    I have set up an alert category with option "Dynamic Text" activated as I want to use some custom container variables in BPM.
    When the appropriate control step in BPM is executed not alert is triggered.
    If I try to trigger a test alert using report RSALERTTEST I get the following error:
    Alert ID is unknown. Maybe the alert was not created.
    Both works fine when I use a an alert category without "Dynamic Text" selected. What could be the reason for this?

    Just got the alert from the integration process. RSALERTTEST still gives the same error, but most important is that the alert works during runtime.

  • Loading swf file with dynamic text

    For a website I'm creating I'm going to have a main swf file
    that loads individual swf files for each page. Each page's swf file
    loads in external text files through dynamic text boxes so i can
    edit the website easily. To load the swf files into the main swf
    file I'm using the loader component. Everything works fine except
    thedynamic text boxes of the swf files that are nestled in the main
    one do not load properly. Instead, in each text box i get a message
    similar to this:
    _level0.NewsLoader.contentHolder.News1
    NewsLoader is the instance of the loader component, and News1
    is a variable called in through a dynamic text field from the html
    document entitled News1.html. The individual news swf file loads
    the text properly, but when the news swf file is loaded into the
    main swf file the text is replaced with the message above.
    Any suggestions?

    the problem might be due to the changed references if you
    load the movie into another one.
    is NewsLoader a MovieClip instance inside the main movie or
    inside the mc that is loaded into the main movie?
    If it resides inside the exteranly loaded movie, you will
    either need to use the lockroot attribute or use a relative
    reference to the News1 variable.
    Since the _level0 always points to the _root timeline (the
    one of the outer most movieclip) _level0 used in the external mc is
    different once the external movieclip is loaded into another movie.
    I suggest only using relative references, makes live much
    easier.

  • CS3 - Problem with dynamic text -

    Hello,
    I have a problems with my text, when i write a few ligne inside a dynamic text box, if i selec the text and by the way drag it down the first line goes up and disapear. Is there any way to solve this?

    This is the Flash Player forum; please post your question in the appropriate product forum.

  • Help with code for score-keeping with dynamic text box

    Hi All,
    I'm having an actionscript 2.0 problem with keeping score.
    I have a dynamic text box with a variable called score.
    I have the following action code for that variable:
    _root.score = 0;
    For the correct answer button I have this action:
    _root.score = Number (score) +10;
    This works fine to increase the score by 10 for each correct answer.
    The problem is that I can't get an if statement to work for when the score reaches 150 to gotoAndPlay a certain frame. I've tried various syntax, I've tried it on the action for a button and an action for the timeline with: 
    onRelease = function () {
    (My learning game is set up to allow for users to answer up to four extra questions to reach the score of 150).
    Nothing works. Any suggestions please?
    Pam

    Below is a link to a small sample file.  See if you can find anything different between your file and the one linked that might cause yours to not work as desired.
    http://www.nedwebs.com/Flash/AS2_score_sample.fla

  • Issues with dynamic text box formatting

    I'm running into issues with using HTML formatting for a dymanic text field. I know these are quirky and I cannot figure out how to get the formatting proper.
    I have on my stage a dynamic text box called "content_txt" inside of a movie clip instance "content_mc". When it enters the frame, I fade the "content_mc" from alpha 0 to 100 using a timeline animation. In order for this to work, I have to embed the font in my "content_txt" text field. However, the only way I get get the HTML formatting to work is if I do not embed the font.
    The dymanic text field is set to render as HTML. In my actions layer, I set the text:
    this.content_mc.content_txt.htmlText = "<b>Hello world,</b> it is me again."
    In summary:
    1. If I do not embed the font, the alpha fade does not work but the HTML formatting does.
    2. If I embed the font, the alpha fade works but the HTML formatting does not.
    How do I resolve this? It's driving me nuts!

    How do you embed just one style?
    I've tried typing three words in the text field and formatting each (regular, bold, italic) but the text field just defaults to whichever format is first.
    Also, I tried embeding the whole character list and did not have success.

  • Drag movie clip with dynamic text box inside it?

    Hi team, I can drag a movieclip with static text inside it, but when I change the text to dynamic, I get a Property Startdrag not found on Flash.text.textfield and there is no default value.. Any help?
    Cheers
    sub

    assign the mouseChildren property of your movieclip to false.

  • SQL Subscription field shows * only with Dynamic Text Label in SQL query

    We are using Hyperion Analyzer 7.2.x for showing budget and actual data. I have to show this financial data based on the security e.g. person in IT can see only IT dept. data. Hence I want to use dynamic text label <<userid>> for the security based on the person logging in to Analyzer.
    But when I use dynamic text label <<userid>> in the SQL query in SQL Spreadsheet, SQL Subscription field shows * only selection option. Does anyone have idea how to solve this problem?
    Thanks in advance for your help.
    -SV

    Hi
    Okay i know this is a bit crazy way.....but i think this is the solution for your issue.
    Create a report without the where clause (<<useris>>) then add a filter (sql subscription) then you can find all the values that are there in the SQL field (try to increase the query limit it is set to 250 as default) then edit the spreadsheet and add the where clause (<<userid>>).
    This will help you having the filter and the dynamic text label. I think there is an issue when you try to filter it with a where clause.
    Hope it helps.
    CK

  • Button roll-over animation with dynamic text

    So I have a button I want to be able to use over and over. When you roll over the button, it does an animation and has a dynamic text box in it. Ovbiously im trying to make each text different for each button. What would be the smartest way to go about this? Thanks,
    Dan

    create a movieclip, put a stop() in frame one and add your "up" graphics, textfield etc put everything in its own layer.  create another keyframe on that timeline and label the frame "over" and add new keyframes only on the layers that will change.  ie, if the textfield doesn't change, don't put a keyframe on its layer.  likewise, for a "down" frame, if you want one.
    use instance names for everything in the movieclip that you want to control with actionscript.  ie, your textfield(s) will need instance name(s).  i usually use one textfield named tf.
    then use:
    btn1.tf.text = "test"
    btn1.addEventListener(MouseEvent.ROLL_OVER,overF);
    btn1.addEventListener(MouseEvent.ROLL_OUT,outF);
    btn1.addEventListener(MouseEvent.MOUSE_DOWN,downF);
    function overF(e:Event){
    // if you have another textfield here assign its text
    // likewise for other objects you want to change
    e.currentTarget.gotoAndStop("over");
    function outF(e:Event){
    // if you changed textfields in the other frames, reassign tf.text here
    e.currentTarget.gotoAndStop(1);
    function downF(e:Event){
    // if you have another textfield here assign its text
    e.currentTarget.gotoAndStop("down");

  • Newb needs help with dynamic text

    Hi Everyone,
    I don't like being a newb - but that's how it is...
    I'm trying to create a multipage registration form that
    allows uses to register products.
    The first page asks for name etc, and on the second page I
    want it to say "Welcome "+username "!" - that sort of thing...
    The problem is I can't get it to keep the dynamic text values
    accross the pages.
    I can get it to repeat the input on the first page with this
    code:
    _root.firstname_txt.onChanged = function() {
    _root.firstname_repeat.text="Hello
    "+_root.firstname_txt.text;
    However when I call it on the second page it is undefined:
    second_repeat.text="hello "+_root.firstnamt_txt.text;
    trace (_root.second_repeat.text);
    I'm sure this is something simple and I'm just a programming
    dunce...
    Any help is appreciated.
    ta

    if your textfield (_root.firstname_repeat) doesn't exist on
    the 2nd frame, its text property will be undefined.
    to remedy, either extend your textfield's existance into the
    frames needed or use a variable to store its text property (in your
    onChanged handler) and use that variable to retrieve the value you
    need.

  • FONT issue in flash with Dynamic text

    I dont even know how to start this thread... I am having a
    serious problem with fonts on the flash movie I am Making/
    Modifiying. The Font that is being used is "standard 07_53" and I
    have been trying to understand how flash works with the fonts but
    somethings are just making me scratch my head. First off :
    - I tried using both the anti-alias for readability and the
    anti-alias for animation... the anti-alias for animation seems to
    creat sharper text in most cases.. + I am embedding all charachters
    when I do that (I know this makes my file way too big, but I am
    trying to figure out where I am going wrong)
    - Q1 : I found out changing the position of where my text box
    is on the document changes how clear the text is in the final
    puplication. Now That I have not even the simlest idea why... does
    anyone know?
    - Q2 : The justify problem... whenever I use Justify my text
    is all messed up... I even tried to change the font to Arial for
    example and it still makes some of the text a bit blurry (well it
    is blurry enough that I can notice it right away).. why does this
    happen?? and is there any kind of solution to this problem?? I
    definatly want my text justified
    - Q3 : Do I and why, have to embed the font in each text box,
    wouldnt one embeding be enough if using the same font in all the
    other text boxes?
    - Q4: Why do I see the text differently on different
    computers.. and this realy is in relation to Q1.. on my monitor all
    looks good on the published document, yet on other monitors and
    computers it looks completely fussy untill I change the position of
    that text box.
    -Q5: are there any sites that go in depth about Fonts and
    dynamic text and how they end up rendering in flash?
    you can see my problem with justified text at :
    http://www.alwayscoffee.com/mirror/flash/
    then click on COMPANY and then look at the text under "ABOUT
    US"
    by the way I am using flash 8 and publishing (flash settings
    of:) flash player 8 - action script 2.0 - compress movie option
    CHECKED - and jpeg quality 80
    I apriciate all the help I can get.
    Layth

    Hi,
    as you I don't even know where to start, as it is (as you
    have noticed) quite a complex thing. If you are still interssted in
    the subject, drop me a line, and I try to answer some of your
    questions.
    markusma
    _remove_thieu@macDOTcom

Maybe you are looking for

  • Is the Audigy SE cound card fully compatible with Windows Vista

    Hi, all. Is the Audigy SE sound card fully compatible with Windows Vista? I see conflicting posts about this issue. TIA. -- Bob Website: http://www.Property-Aid.com E-mail: [email protected]?Exchange ideas and investing tools at our Real Estate Maste

  • How can I backup all of the texts on my iPhone to iMessage on my Mac?

    I want to transfer every text on my iPhone, since the beginning of time, onto my Mac in an easily synced and accessible way. I want to use iMessage on my Mac to store all of the texts on my phone. Eventually, I want to hold only a month/week's worth

  • SCRAMBLE with Friends Crashes?

    Does ANYONE have a problem with SCRAMBLE with friends crashing on your iPod or iPhone?  I've tried contacting Zynga to no avail, and then it hit me . . . could it be that the iOS on the iPod 4G not be strong enough?

  • Tungsten E2 won't recognize SD card

    Recently purchased E2 won't recognize SanDisk 2GB SD card. Any suggestions? I have tried 3 separate ones.  Post relates to: Tungsten E2

  • BT Infinity 2 upgrade for business

    Hi I have BT Infinity at my business premises on a business tarif and it works well. My router (Ive got a Draytek, not one of those nasty old BT ones!) is telling me that my attainable speed is 76Mbps however, when I ring BT and ask to be upgraded, t