A repeating region: display the entries of dubble only once
I want to do a Recordset where all the 'cities' are shown only once, it should not be like
The Hague
The Hague
The Hague
Rotterdam
Rotterdam
Amsterdam
But:
The Hague
Rotterdam
Amsterdam
This is the recordset object:
SELECT c_city FROM canteen
It's the repeat region:
<? PHP {? > <? php echo $row_allCities ["c_city'];? > <? php} while ($row_allCities = mysql_fetch_assoc ($allCities));? >
Thankx for any help!
Add a SEPARATE statement to your application.
SELECT DISTINCT c_city canteen
--
Lawrence * Adobe Community Expert *.
www.Cartweaver.com
All Shopping Cart Application for
Dreamweaver, available in ASP, PHP and CF
www.twitter.com/LawrenceCramer
Tags: Dreamweaver
Similar Questions
-
The initialization Code: run only once at T = 0?
Hello
Is it possible to run some ActionScript only once at the beginning of the flash application?
There are GIFs that I need to download dynamically from the server that once that will be used on the buttons. When we go to another scene and return, the GIFs are downloaded again.
Thank you
FG#initclip and #endinitclip must be applied to a movieclip. If this movieclip is on stage as part of the _root timeline and governing has played more than once, your code initialization, attached to the timeline of the movieclip would run only once.
Anyway, there are some easier ways to accomplish what you want directly. for example, the following code in the conditional runs, at most once little matter how many times the frame is played:
-
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.
-
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/07For 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?
-
When I use the view source feature, the pane shows not only the HTML code, but it sticks in all Javascripts that are in an external file. In addition to this all dashes went making it virtually unreadable.
I have this problem with each monosite, I try to view the source of the. I turned in and uninstalled all add-ons. Starts in safe mode. But nothing seems to work. I got this in firefox 3.6 and upgraded to 4 it would fix, but is not hope.
It's strange. How about trying to reset all preferences of view_source to their default values.
Talk openly about: config (type or paste Subject: config to the address bar and press enter)
In the filter box, type or paste view_s
When preferences are displayed, do a right click and Reset those appearing in "BOLD" to return to their default values.
A little luck?
Edit: Oops, for Mac, read 'right click' like what you normally do to display a context menu.
-
After the removal of the malware "IE cannot display the webpage" - a user only
After removing various malware with Symantec Endpoint Protection 11, MalwareBytes 1.46 and the Microsoft Malicious Software Removal Tool, the user who received the malware (all detected instances are found on their profile or in the system restore points) can not access all the Web sites with IE 7:
"IE cannot display the webpage."
The administrator account, or another standard account have the problem.
I tried to open IE with 'no Add-ons' when you are connected to the consumer - same result.
I have reset the Internet Explorer settings on the tab 'Advanced' Internet Explorer (inetcpl.cpl) - same result.
Once more, the other two users can access Internet without problem.
The 'user' can access the network otherwise - e-mail, drives mapped to the server, etc...
One option: delete and re-create the profile of the user in question.
But before resorting to that, is there another option?
If I deleted Internet Explorer components in his profile, would they be recreated (correctly)?
System Restore is not an option, because the troubleshooting procedure indicated that we should delete because they could just bring back the malware. And indeed, the malware has been detected in several snapshots.
Have you tried to double check the proxy in Internet Explorer?
Try going to the Internet Option-> setting connection and LAN, check the setting and be sure to correctly configure other users.
You can also try to contact Symantec Support for more help with this problem.
-
Woodtype ornaments OTF does not display the oval to symbols, only black
I tried all the options installation - Mac OS 10.6. Does not display the symbols FontBook or InDesign... just black ovals.
I downloaded again Adobe... didn't work.
I want to ask Adobe to watch the download but there is no available direct contact.
OpenType fonts are not mapped to ASCII characters as the old Type 1 fonts are. In the case of a typeface as WoodType ornaments, the symbolic characters do not map to your keyboard. You must use the glyphs Palette in InDesign to enter characters.
Try and let us know if you still have any questions.
-Dov
-
Haw to find the element in the table that appears only once
I have a table like this 2d:
1 2 3 4 5 0
5 6 2 4 7 2
8 3 6 0 9 4
5 6 7 7 3 2
And I need to find items that appear only once in this table
In this case, 8 and 9
I also need this elements (row and column) position
Are integers
I tried to remodel the table and use the find but no result.
Your best bet is to remodel a table 1 d do your seaching and use 'Quotient & rest' to convert location (index) in the table 1 d back to the index in table 2D. Use "Array Size" to get the number of rows and columns of the table 2D.
The histogram only works on 1 d arrays.
Or reshape a 1 d table. For each digit (0-9), use 'Search 1 D Array' twice. If the first 'search' finds a match (does not =-1), use the offset to start the 2nd search beyond the 1st index discovery. If 2nd 'search' returns-1, then one and the SAME time happens
The index of the first 'search' to calculate the index (Quotient & rest") line and collar of the 2D array.
-
the animation code runs only once
Hi all
import bb.cascades 1.2 Container { Container { layout: StackLayout { orientation: LayoutOrientation.LeftToRight } Label{ overlapTouchPolicy: OverlapTouchPolicy.Allow text:"Initial Text" minWidth: 600 animations: parallelAnimation } Container { overlapTouchPolicy: OverlapTouchPolicy.Allow layout: DockLayout { } ImageView { overlapTouchPolicy: OverlapTouchPolicy.Allow imageSource: "asset:///images/hotels.png" } ImageView { overlapTouchPolicy: OverlapTouchPolicy.Allow id:imgsource imageSource: "asset:///images/hotels.png" opacity: 1.0 } } gestureHandlers: TapHandler { onTapped: { if(parallelAnimation.isPlaying()){ parallelAnimation.stop(); } parallelAnimation.play(); } } animations: [ ParallelAnimation { id:parallelAnimation TranslateTransition { id:translate toX: -20 toY: -300 //duration: 1000 } ScaleTransition { id:scaletransition toX: .2 toY: .2 //duration: 1000 } FadeTransition { id:fadetransition toOpacity: 0 // duration: 1000 } onEnded: { console.log("On ended parallel animation"); translate.toX = 0 translate.toY = 0 scaletransition.toX=1 scaletransition.toY=1 fadetransition.toOpacity=1 //parallelAnimation.stop(); } } ] } }
I made the image to translate into original poision in onEnded ParallelAnimation but its not working. The label is visible only after tapping the container again. And further taps plays not the animation.
Please help me with this.
use a sequential Animation:
first run your ParallelAnimation
then the following reset of translations
-
Project displays the titles under automation only
Hello world
First of all sorry for my English, my native language is German.
I'm in the middle of a project of mixture. For some reason, all the tracks are displayed in the form of automation (see photo below). I never had this problem and I am not able to restore my project to the original format (for the vague image equipped lanes). Can anyone help?
Thank you
You opened the page To organize of Automation . That can only be done if there is an event open automation (cmd-ctrl-E) Publisher while you open a main window (cmd-1).
To open a normal suit page aka the main window, first of all: close the event automation, second Editor: press cmd-1, third: close automation suit page.
-
My Bookmark menu no longer displays the icons for sites, only a white box
Previously, when I chose "Bookmarks" from the menu of Firefox, the sites appearing usually had an icon or logo in front of the name of the site. Now, it's just a square white or white.
Be sure to see the page for Max OS X and Firefox9:
-
Display the web application scope only, otherwise null
Have not jumped into the liquid stuff yet, but wondering if he does something like this happen on a web app detail layout:
{% If the value of photo 2 exist %}}
< img src = "{tag_photo 2_value}? Action = thumbnail & width = 840 & Height = 500 & algorithm = proportional">
{% endif %}
This would be very useful to me...
Hi Phill
The documentation is the place to be really on this to learn everything.
Is useful to put in any layout to see what is the liquid output of data for this object.
The Docs:
Then you have pretty sandpiles webinars, etc. covering this kind of things of course.
{% If this.} ["photo 2']! = '' %}
{% endif %}
-There is no _value concept etc. in a liquid generates raw data that you can use depending on your needs. If there are cases of what they are up to date.
-Liquid can't handle names spaced which is why you see this. [""] to wrap it (you would do the same kind of thing for the JSON data in coding
-Output of image fields in cash without value
-
Thus, for example, ringed RED notes are not affected at this time there, then why they arise after the GREEN circled notes, which are affected. It has to do with the length of the MIDI note or sustain? (I have the pedal which is held for the entirety of the song)
Note, I'm seriously new whereupon on sheets of music, so I apologize if it's both obvious and a very simple solution. Thanks for the help!
This has to do with the length of the midi note. Make sure you play on a click track (turn on the metronome) and slow down a little if necessary (tempo).
Also turn on syncopation to eliminate some of the links and according to your needs... set the quantize to a lower value for example display 8. You define quantize for the smallest value you want to play (if its 8th note - 8, then black - 4 then - sixteenth note 16 etc.).
-
How to limit the opening of link only once in a new tab?
If I then click on a link which is then open instead of opening in a new tab, I want to redirect to the tab open this link and update them if necessary.
ssfjhh,
It is actually a feature of the url bar. If you start typing the link and the link is already open, it will have to "Click on tab" under the suggested url. However, if you are clicking on a Web page, that you need an add-in to detect this. https://addons.mozilla.org/en-Us/fire.../duplicate-tab-blocker/- please keep in mind that it is a preliminary investigation add on. -
Rating of the NEF and JPG only once in Lightroom
Hi, I would like to switch from Nikon Capture to Lightroom, but faced with a problem where I don't know how to overcome the best. I'm generates for each photo in jpg format and a NAVE with my Nikon camera. After importing in Lightroom, I would like to note my photos by rating just the JPG or pic of the NAVE and the side should have copied the other file.
I guess it must be a known challenge, but I'm not able to find a solution on the web.
Thank you very much
Burkhard
The plugin Syncomatic will do what you want.
Maybe you are looking for
-
I am able to backup via iTunes, but can not get the settings on the phone to turn on sync to iCloud for notes created on the phone. Are these these notes saved in 12.4.3.1 iTunes backup?
-
Buy macbook pro 2015 before the release of the mbp 2016
Hello, I bought a Macbook pro a week ago (the most recent that has been released/updated in may 2015), if the rumors are true, I hear that there is a newer version some time. This workbook to return and there are still 7 days for a full refund. Any a
-
Set the screensaver via the Terminal timer
El Capitan, latest version running Hello To manage remote computers, I would like to set the timer to 0 CLI screen saver. I've seen several posts suggesting changing the entrance of com.apple.screensaver.plist called 'idleTime' but as far as I KNOW,
-
I am logged in as administrator. The error occurs when I double click on the executable file. I tried to run the update as an administrator by clicking on the icon and select this option. I also tried the option "unlock" under the properties box and
-
VPN disconnects spontaneously - sometimes
I set up a VPN between two Windows XP systems on two different networks, using the built-in VPN connection from XP. In most cases, the connection remains active without problem. However, on occasion, the VPN disconnects for no apparent reason. I chec