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.

Tags: Dreamweaver

Similar Questions

  • image of exchange within the repeat region

    I am trying to configure a swap image behavior of in a dataset of the repeat region using php/mysql model. Someone at - it help him? See you soon.

    Thank you Rob, who did it. Code below.


    {? >}
    &productID=" onmouseover="MM_swapImage('productImage','','images/',1)" onmouseout="MM_swapImgRestore()">

  • 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();
    });
    
  • 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

  • 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.

  • 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 #.

  • Adding image to the screen only half of the image is displayed

    Hello

    I'm trying to add an image to the screen of my application, like this:

    BasicEditField _bef = new BasicEditField(){
        public void paint(Graphics _g){
    
    Bitmap _bitmap = Bitmap.getBitmapResource("3.png");
    _g.drawBitmap(0, 0,  _bitmap.getWidth(), _bitmap.getHeight(), _bitmap, 0, 0);
    
        super.paint(_g);
        }//end of paint
    };
    
    _verticalFieldManager.add(_bef);
    

    the strange thing is that only a part of the image is displayed and I don't know why! I have test it on bb 9000, so I know it has 480 x 320 and my picture is 480 x 176, so it must be shown.

    is anyone of you know what can be wrong?

    Kind regards

    Misty

    OK, I'm surprised that adding text did not work.  Apologies for suggesting it.  Can you tell me what JDE level you try and I have a go here.

    Anyway, the normal way to display a bitmap using a BitmapField.  This should always give you the entire Bitmap.  Give it a try.  You won't have to replace the paint using a BitmapField!

  • Adding images to the Collection of books [was: Blurb book Question]

    I'm doing a book with Blurb from a collection of photos in LR. I've added two pictures to the collection I wanted to add to the book, but they do not appear when I pass 'Library' to 'book '. How can I make it appear? Thank you!

    Hi sunlovinggirl,

    Once you add the images to the collection of books, they appear on the film when you return to the book Module so that you can add them to your book pages.

    You should look for them in the film.

  • Repeat regions inside the repeat regions

    I don't know how to do this.  Dreamweaver has said that we can not put server inside server behaviors behaviors.   But it seems like a pretty standard thing, someone might want to do.  For example:

    Suppose you want to create a menu online.  And say... you have two tables:

    Elements of array

    • item_id
    • Nom_element
    • item_description
    • item_price

    Ingredients of the table

    • ing_id
    • ing_name
    • item_id

    So, on your page, you want to display a repeat of each menu item region in the database.  In addition, within each menu item, you want to have a repeat region of each ingredient that has the same id of the element.

    Who is?  So, it can look like:

    Fishy lips
    Wonderful lips for all you lovers of the shady lip!  Get 'em today!

    Ingredients

    Fishy lips

    Seasoning ladle

    Herbs fish

    Fishy spices

    Luckity Hoppity
    Legs of amazing rabbit that bring good luck!

    Ingredients

    Rabbit legs

    Spices of rabbit

    Language of cow

    Sorry, I'm not a php programmer, but I can explain the concept.

    First of all, your idea to recover the two recordsets and then display the corresponding data in the inner loop should work. But it looks like you get the wrong records.  If I understand, you obtain a list of healthcare providers and then education for each display. Fix? If so, then the caregiver is the outer loop, and education is the inner loop, yet your inner loop made progress helping RS:mysql_fetch_assoc($getCaregiver)

    You could try just those switching.

    However, it is more common first retrieve the recordset of the outer loop. Then, when you browse, you need to run an internal recordset for each iteration of the outside. Your SQL for the internal RS has a filter so that it contains only the matching records.

  • Adding images to the collection

    I'm doing the simplest thing, without success. I have created a collection and want to add twenty images to it. In the grid view, I select my twenty photos, but can not drag and drop them in the collection folder. I right clicked the folder, looked in all the menus, but can find no reference to adding photos to an existing collection. Obviously, I'm missing something very simple, but I don't know what it is.

    Thanks in advance,

    Gary

    You must drag from the center of the images in the collection. Gray no surrounds.

  • How can I use the Session variable in the repeat region

    I have a session variable assigned to the #(numérotation automatique dans access db) of the posts ID. The variable is set to the recordset object that is displayed first (sort by message ID descending). I would like to find a way to make the variable to assign to all records, if the variable is passed to the delete page. If I use a URL parameter to send the message ID, then someone could change the number in a browser and delete messages not intended for the user.
    If you want to see the example in action goto link at the bottom of the message. Save it and reply links are URL parameters response uses the variable MM_Username to enter the name of the sender for a URL parameter is OK, but click on save and then change the value of msdID in the browser for a different number and you can record and display another message not intended for your login id. The link delete uses a session variable that I posted in the Recordset as the auto access number msdID and the good msdID # do not are they assigned.
    What to hide the URL parameters, it would be simple, but how can I do?
    Thank you
    MikeL7
    PAGE WITH SESSION VARIALBE to DELETE PAGE (save and the response are URL parameters)
    http://www.gohbcc.com/callcenter/EmployeeMessagesVIEW2.asp
    USER name: admin PASSWORD: 1234

    links from other pages of my site will bring to:
    http://www.gohbcc.com/callcenter/EmployeeMessagesVIEW.asp it's the settings of all THE URL enter 2 after VIEW to use session variables

    Your message forced me to find a way to make it work, I put the code to create the variable just before the repeating table in the region and went on to form buttons that post the variable and labeled buttons and it works perfectly. Thank you

  • PHP mail - equivalent of the repeat region in the body?

    My client wants a summary of the products registered in the body of an email. My mail script works great, but I don't know how to add the summary of products (what I call a 'repeat region").

    Thanks in advance for your advice and comments

    Hi David,

    Thanks for the help and apologies for not being precise.

    My recordset looks like:

    cust_id product_name order_date
    PRODUCTA 100 23/12/08
    100 PRODUCTB 23/11/07
    100 PRODUCTC 22/09/07

    For example, a client may have 1 or 100 items, so you can see why I want to create the equivalent of a region that is repeated in the body of the message.

    It is more useful to you?

  • Adding Images to the OPA

    Hello

    I use OPA to create wizards in the sector of food labelling. It would be very useful to add images to our assistant (examples of label, etc.). As I am new to the OPA, I was wondering it's capabilities:

    1 you can images be part of the development of the rule ("aka the user can select one a picture on the screen and in the rules, we can encode ' etiquette needs an expiration date if the user selects 'image a')

    2. how add us images in the building of the screen? Perhaps as part of a label.

    Thank you!

    Heather

    You certainly should not refer directly to your local computer in the HTML reference image. According to my example above (Question screen: ), try to put this in your HTML tag:

    The above HTML code assumes that the image (Format.gif Standard narrow) file is saved in the pictures of the project folder.

    I suggest you try just first obtain an image to display. After that you have this job, then worry about the other images and formatting.

    See you soon,.

    Jasmine

  • 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
  • Adding images to the presentation of the Composition

    I don't find a way to add images to this widget of composition. Slide shows and all the rest have a button 'add images '.

    I love the background of the image of presentation and don't want it Pebble while using a different Composition Widget.

    Thank you

    Greg

    It doesn't work quite like that. PLACE in effect put the image as part of the target, but the image does not appear in the handle of the pitcher. Various tests to get the image into the trigger (PLACE, paste, etc.) puts the image on top of the trigger, but this image shows always no matter what trigger is clicked. Organizing is useless here.

    The results are the same with the FILL option.

    I get the same results when I try the WHITE too. The trigger frame remains gray.

    I use 5.0 build 775980 702

    AIR Runtime 3.7.0.2090

    Thanks again

    Greg

Maybe you are looking for

  • Battery withdrew

    Is it possible to remove the battery of an iPhone 5th generation or more to another phone. I understand that this may require a different hardware etc but its she practically possible within the iPhone (assuming that material cable etc. already was i

  • Find the IPad

    My husband was working on a lot along the road and found an IPad and to be on the road there were only a few cracks on the protective cover, either way he will take it in the schedule to the police. They will be able to find an owner recorded by Appl

  • R7000 as router with the router for mobile broadband Internet

    Hey guys. First of all, my apologies for my somewhat inadequate English skills. Secondly, I am brand new to the community, so apologies in advance for any fault :-) Third stop, apologize for having a complete beginner :-D So, for the issue: I recentl

  • Programmatic process single shared Variable access

    Hello I was wondering: is there a way to access the shared process Variables Single using the API similar to the shared network SV programmatically? It would be a handy feature and this post suggests there are: https://forums.NI.com/T5/LabVIEW/progra

  • run engines

    If you have several execution engines installed, the executable will choose correct RTE to work properly? IE @ I have several executables developed using different versions of Labview. The code is locked, so I can't open and save it using the latest