Force a line break in the repeat region

I have a table that displays data from a query in PHP that I made using a single set of records and the repeat region behavior.  I would really like to be able to break the table (add an empty line) every time that a certain field changes the values.  My code (or the code given to me by DW) is as follows.

<? PHP {? >}

< tr bgcolor = "#809E7C" class = "reg_dataview_data" >

< td > < table >

< td > <? PHP echo $row_rs_Sum09 ["ChildFirst'];? > < table >

< td > <? PHP echo $row_rs_Sum09 ['child age'];? > < table >

< td > <? PHP echo $row_rs_Sum09 ["ChildSex'];? > < table >

< td > <? PHP echo $row_rs_Sum09 ['Session'];? > < table >

< td > <? PHP echo $row_rs_Sum09 ['Status'];? > < table >

< td > <? PHP echo $row_rs_Sum09 ['quarter'];? > < table >

< /tr >

<? PHP} while ($row_rs_Sum09 = mysql_fetch_assoc ($rs_Sum09));? >

I would like for the table to break to the change in the value of Session.

Advice would be greatly appreciated.

Steve

Yes, sorry about that. Simple mistake. I forgot to reset the value each time that the loop runs:

                                                                                               

By the way, attaching images is very hit and Miss in this forum. It is best to use the camera icon at the top of the message field to integrate the image directly into your message.

Tags: Dreamweaver

Similar Questions

  • Force a line break in the text of button?

    I'm sure I asked this before a few months ago, but what worked then is not working now.

    Dreamweaver CS 6: I have a menu bar button that contains text that needs two lines. The default line break is awkward. I want to break the line a word before where the default it breaks.

    Now, a few months ago, with a taskbar button previous menus that have had the same problem, I was told to enter the control + return in the window code and divide the text exactly where I wanted. (Note: I'm on a Mac, I don't speak a command.) I mean the control key.)

    What to do with this button and it forces a line break where I want in the code window, but the design window is not follow suit.

    So. How can I force a line break in the text of the button in design mode? I'm sure it's something simple. But what I thought I knew have apparently isn't what I want.

    How can I force a line break in the text of the button in design mode?

    Have you tried Shift + Enter?

    It works in Windows, so it might work on mac as well.

  • Paragraph tags and header forcing a line break in the AP element please advice

    Hello

    I bought Dreamweaver CS4 after attending an intro class at the College where we used an earlier version (macromedia 8). My main problem is that when I add images/text inside an AP element it automatically gives a space of one line which was not on the old version and also looks like this on preview. However, if I change the text to no jumps back up to where it should be, so im assuming its something in preferences. Please see attached for example image.

    I would be recognizing all the advice, as it is something I want to fix before you begin any project.

    James

    header-tag-example.jpg

    It has nothing to do with being in an AP element. By default, all browsers add margins for most items on level block, such as titles and paragraphs. The difference between CS4 and Dreamweaver 8 is that design in the new version gives you an idea much more clear of what the page will look like in a browser.

    You use CSS to adjust the margins on the titles and paragraphs. For example:

    h1, h2, h3 {
      margin-top: 0.25em;
      margin-bottom: 0.25em;
    }
    p {
      margin-top: 0;
      margin-bottom: 0.4em;
    }
    

    These style rules will reduce the gap between the title and paragraphs.

    If you're just undertakes a project with AP elements, take the time to read the following article. It might make you change your mind: http://apptools.com/examples/pagelayout101.php.

  • Add the line break in the field 'ask '.

    Hello

    I am trying to create checkbox with a personal message for my iExpense page. The comment to go here is long enough and puts in place a horizontal scroll bar that damages the look and feel. I tried to adjust without wrap to FALSE, but which is overridden somehow. Can someone suggest how I can introduce a line break in the Guest section... I tried html breaks etc obviously, but they are coming as the exact line breaks not as characters.

    Hello

    As I mentioned in my email, this region is a region shared everywhere ebiz, if we programmatically change which will affect all applications.
    I've updated the other thread (root problem) soln,.
    iExpenses-Help for customization of a Standard of Notification Workflow page. ,

    Thank you.

    With respect,
    Kali.
    OSSi.

  • Number of records in the repeat region

    I have a page with a repeat region, which displays the records in Table1. Table1 is related to the Table2 (one to several, MS Access). I want to do is show the number of records in Table2 that are associated with a given row from Table1 shown in the repeat region.

    Think of how many responses listed next to each message in this forum, because that's basically what I do. As it is now, I get the correct number of records for the first line of Table1 shown in the repeat region, but this number is indicated in each line. In other words, if the first record displayed from Table1 has 3 matching records in table 2, 3 number in each row in the repeat region.

    I appreciate all the help that I'm a complete novice.

    Maybe it is not very effective, but I bet you it will do what you want:


    SELECT *.
    FROM table1
    ORDER BY name DESC


    SELECT *.
    FROM table2
    Where tid = #table1.id #.


    #table1.name #.
    #table1.client #.
    #table1.products #.
    $# numberformat (table1.income, '999,999.99') #.
    #table1.frequency #.
    #table2. RecordCount #.

  • line break in the TEXT Editor

    How to enter the line break in the TEXT Editor?

    --

    Thank you.

    There is an easy solution.

    If you want to use the Enter key, simply hold down the SHIFT key and the Smiley key become the Enter key.

    Alternatively, if you are a fan of the typing gesture, you have need only drop off shift at entrance to y to insert a new line.

    Hope that helps. Please acknowledge.

    Concerning

  • Automatically convert soft line breaks in the text box to hard breaks

    I have the design of textbooks and convert to ePub recomposable, broke up. These ePub files get formatted then can be used interchangeably on the printed text. A book that I am currently in conversion is a literature book where there are lines of text with the overall line numbers so that teachers can quickly refer to a specific section of the text.

    All the line breaks in the ID file are defined just by the edge of the text box. So the text box change sizes, all line breaks would also change. Isn't a problem until you need to keep these online breeze in recomposable text and add up the numbers in.


    What I'm looking for is a way to insert automatically the line breaks in these LONG sections of text in the right places. Does anyone have any ideas on how to do that?

    Thank you!

    Select a text box and run this script. He puts a soft return at the end of each line that doesn't have a carriage return. For more information on the installation and use of this script see http://indesignsecrets.com/how-to-install-a-script-in-indesign-that-you-found-in-a-forum-o r-blog - post.php .

    Written by Skemicle

    If (parseFloat (app.version)<>

    main();

    on the other

    app.doScript (principal, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "add end of line returns");

    main() {} function

    lines of the var = app.selection [0].parentStory.lines;

    for (i = 0; i<>

    If (rows [i] .characters [-1] .silence! = "\r") {}

    lines [i] .characters [-1] .silence = "\n";

    }

    }

    }

  • FTP Dreamweaver CC2015 removes all line breaks in the php files. How can I fix this problem?

    When I upload a php file. The ftp transfer removes all line breaks and creates a continuous line of unique text. I need to download the code with all the line breaks in the original php file correctly.

    I found the problem.

    FTP of Dreamweaver CC 2015 program is not compatible with Yosemite 10.10.5 on all ftp servers.

    The new version of FileZilla (v 3.14.0) is also not consistent.

    Fetch 5.7.5 is fully compatible with Yosemite. With Fetch, I can download the files without any problems successfully.

    In their update, Fetch mentioned that the problem is not with all servers.

    I host on Unix servers with HostGator AMD Opteron processors running on an OS GNU/Linux 64 - bit.

    If you run Yosemite and ftp of Dreamweaver is ruin your line breaks, then use Fetch until Adobe can fix their problem.

  • line break in the value of the attribute

    Hello

    11g JDevleoper xml document I need to have the line Rodez well instead of having xml attribute value

    <some-xml-element value="this value goes over.... multiple lines!" />

    I want to have


    <some-xml-element> <value>this value goes over...

    multiple lines!</value> </some-xml-element>


    Is this possible?

    Thank you

    Anatoliy

    Your original question was about an XML attribute , but him more later for example does not use an attribute and a child element (). Attributes of the element XML and XML elements are two different things. If the XML schema for the underlying document defines the attributes, you cannot specify the required values as child elements.

    If the XML schema defines the 'value' as an XML attribute, you can specify newlines using characters references, for example:

    value="this value goes over...
    multiple lines!"

    NB. If you put direct line breaks in the attribute (as in your first example above) instead of character references, it will not work. Please, have a look here for precise explanation:

    Is it possible to have HTML or CDATA text inside an XML attribute? -Stack overflow

    If the XML schema defines the 'value' as an XML element, you can set the necessary value in a CDATA section, which will retain the formatting, line breaks including, for example:

     

    multiple lines!]]>

    Dimitar

  • Problems with the repeatable region in table

    Hello!

    I am using a table to display data from a MySQL database. I have two lines put in place. The first is a header row and the second contains the bindings for the info from database. When I select < tr > on the second line and add the reproducible region, it always includes the whole picture, so seen live, the header appears before every single line of text. If I try to select each block and add the reproducible region, it shoots just information horizontally rather than vertically. Any ideas on that?

    Thank you!

    You had to do a little research on Google for this one! I don't know why he always chose the entire table, no matter what I choose, but at least here is a way to manually code around it.

    Here's what the code was originally:

        
      
    1 2 3 4

    Here's what I had to take it:

      
    1 2 3 4
  • In MXML, how can insert you a line break in the label of a mx:Button?

    In other MXML components, you can do things like use curly braces to incorporate scripts, use '& #13' and stuff like that in their text and label attributes.  Apparently the mx label attributes: Buttons are so locked that normal suggestions for other components do not work.  I might try just setting the labels in the main script of an MXML file or something, but it's a sloppy programming if it can be avoided (values of labels will be constant in this case).  Is there a way to put a line break in the attribute in MXML?

    Regarding the use "& #13", which gave me a line break at least, but any text to the right of this sequence has disappeared.  This makes me think that there may be a way to make this work, but so far I have not found the way.

    Thank you!

    The response occurred in the thread that I put at the beginning for this:

    http://StackOverflow.com/questions/11621952/in-MXML-how-can-you-insert-a-newline-into-the-label-attribute-of-a-mxbutton

  • Line or break line break in the text in the UserInterface WEB-Gallery

    How to insert a line break or a line break in the text in the WEB - Gallery UserInterface defined in 'galleryInfo.lrweb '.

    Example:


    Code:

    < pre >

    ToolTip = LOC ' $$$ / AgWPG/Templates/HTML/Panel/WarningIcons/RequiresLarge = change of Image Pages settings are not currently visible.»  Click in the image grid to move to a page of the image. «,

    < / pre >

    Output should be:

    Changes to the settings of the Image of Pages not currently visible.

    Click in the image grid to move to a page of the image.

    Ideas are welcome, thanks.

    \n is a newline and \r is a return to regular text strings.


    is a newline in HTML.

  • fadeIn DIV jQuery (or reversal) within the repeat region

    Hey all. I just started using the repeat regions and am stuck creating a substitution effect. I have a database of products/images and am showing images of an inch in the repeat region by using < img src = "images/thumbs / <?" PHP echo $row_Recordset1 ['productId'];? ' > .png ' and everything works fine. What users flipping the thumb, I want a DIV containing a border orange to fade using jQuery so I can't record a second image with a border for each thumbnail. Normally with static images I would say something like... $("#thumbWrap").hover (function () {$("#border").fadeIn etc, but I have no idea how to implement this kind the DIV border fades independently for each inch in the repeat region.}) Can anyone suggest the best way to achieve this? Thank you guys

    The jQuery code you have posted here is based on ID selectors, but an ID can be used only once on a page. Use classes instead. Something like this might work:

    $('.thumbWrap').hover(function() {
        $(this).parent('div').fadeIn();
    });
    
  • Adding images to the repeat region

    Hey guys, I recently started using the features of dreamweaver PHP with MySQL and I have my display of table data in a repeat region. I downloaded images to the database, but if I drag 'image' of the Recordset into the repeat region I just get a lot of binary. I read I should maybe use image URL rather than the traction of the database of images, but I don't understand how to get the images in sequence. How do I know what order to display if they are not in the recordset in PHP?  I wonder if I missed some feature of DW, as I suppose it is quite a common thing to want images in a repeat region. Any advice would be great. Thank you

    > I read maybe I should use the URL of the image

    > rather than pulling images from the database

    Fix. Storage of binary files in the database leads to performance problems.

    > but I do not understand how to get the images in sequence. How would

    > PHP know what order to display if they are not in the Recordset?

    The images are stored in the file system. The path to the image is stored in the database. The fields in the recordset with the path of the image - in order to generate the html code that displays the image in the Recordset loop.

  • getElementById() JavaScript does not work with the repeat regions

    I have tries an onmouseover and onmouseout to exchange all divs that recur in a repeating region of php and javascript doesn't seem to work for the first rehearsal of div. Is it because the repeat region creates a lot of identical divs and javascript code is confused?

    The following is a very simple version of my code setup which explains my problem:

    I create a forum where the individual comments are included in their own div ("commentDisplay"). To do this, I created a div and create a repeating region around it so that php will debit all the comments of each of them to give a copy of this div.

    for example:

    <? PHP {? >}

    < div class = "commentDisplay" >

    <? PHP echo $row_whateverRS ['whatever'];? >

    < / div >

    <? } while...? >

    Now, I wanted to create a simple javascript when the user moved their mouse on the station he would hide this div and display another div that holds the same content, but still had a background of different color and, most important, gave the user a chance to respond to the post (similar to the youtube comments section). So I created the following:

    < script... >

    function hideDiv (id) {}

    document.getElementById (id).style.display = 'none '; }

    function revealDiv (id) {}

    document.getElementById (id).style.display = 'block '; }

    < /script >

    and then I created this another div ("commentSwap"), which held the same information, but with a different background and an opportunity to respond (and with display: no) and insert the javascript code:

    <? PHP {? >}

    < div class = 'commentDisplay' onmouseover = "hideDiv ('commentDisplay'); revealDiv ('commentSwap')"onmouseout ="revealDiv ('commentDisplay'); hideDiv ('commentSwap') ">"

    <? PHP echo $row_whateverRS {'some']:?} >

    < / div >

    < div class = "commentSwap" >

    ... same-except the ability to answer

    < / div >

    <? PHP} while...? >

    the problem is that the code seems to work for the first rehearsal of the div and not the rest. In addition, when I move my mouse over the other div it causes the first div share.

    Why is this? Is it because all the Extensible divs (through the repeating region) all have the same name and confuse the javascript?

    Thank you

    YWSW

    YWSW wrote:

    So what do you suggest what to do instead (to produce the same see the div / hide div div result in a repeat region?)

    As shown by the fact that you can not have more than one ID on a page, my suggestion is to create the unique id in your loop. Database table has a primary key with the numeric IDs. As a result, the loop by adding the unique ID of the recordset object to the id of the div that is played repeatedly. Observe the provided code.

    ... same-except the ability to answer

Maybe you are looking for