GROUP_CONCAT is it the answer?
OK I Have a table in a MySQL database which stores results from rugby matches.
I have the following query:
SELECT LeagueTeam_0.TeamName AS TeamName_1, LeagueTeam.TeamName, LeagueResult.LeagueID, LeagueResult.SeasonID, LeagueResult.hscore, LeagueResult.ascore, LeagueResult.LRDate
FROM ((LeagueResult LEFT JOIN LeagueTeam ON LeagueTeam.LeagueTeamsID=LeagueResult.hteam) LEFT JOIN LeagueTeam AS LeagueTeam_0 ON LeagueTeam_0.LeagueTeamsID=LeagueResult.ateam)
That gives this result:
I would only like th date to appear on a single record so I can lay out the results like so
05-09-2009
Ilkley 41 3 Harlepool
Morpeth 31 35 Gateshead
Percy Park 43 22 Driffield
etc.
12-09-2009
Ilkley 38 24 Old Brodleians
Hartlypool 17 22 Morpeth
etc.
I have heard that GROUP_CONCAT will do this but I'm not sure how or if it even works in Dreamweaver 8.
Any help would be appreciated
Thanks for you help on this David
I want to use a table for the final layout so I have set up the following simple test to get this working
I am using a Recordset called Recordset2 and have incorporated your code (in blue) into my repeat region but I get the following message
Parse error: syntax error, unexpected $end in /home/driffiel/public_html/TESTER2.php on line 69
Here is the markup with repeat region:
<body>
<table width="240">
<?php do { ?>
<tr>
<td colspan="4"><?php if (!isset($prevDate) || $row_Recordset2['LRDate'] != $prevDate) {
echo $row_Recordset2['LRDate'];
?></td>
</tr>
<tr>
<td><?php echo $row_Recordset2['TeamName']; ?></td>
<td><?php echo $row_Recordset2['hscore']; ?></td>
<td><?php echo $row_Recordset2['ascore']; ?></td>
<td><?php echo $row_Recordset2['TeamName_1']; ?></td>
<?php $prevDate = $row_Recordset2['LRDate']; ?>
<?php } while ($row_Recordset2 = mysql_fetch_assoc($Recordset2)); ?>
</tr>
</table>
</body>
Similar Messages
-
I have a question that I think I know the answer to, but am looking for confirmation. I have a desktop computer at home that has clip art loaded onto it. I recently got an iPad and am looking for something similar. I assume I need to get an APP for it, and if that is correct, does anyone have one that they like?
Sort of. There is an app called art shop that gives you a place to park clip art. But I don't think you really need it.
If you have a collection of clip art you want available, move it to the camera roll on your pad/ phone, then copy paste into your document the clip you want.
You can get them into the camaera roll by putting them in a single event in your picture library and syncing them over, or e mail them to your self, and save to the camera roll, or send them to drop box, and bring them down that way.
The challenge is getting them all in one place to make it easy for you to find, which is why syncing might be the best approach in the long run.
As near as I can tell there is not a ready made clip art collection in app format laying around. -
Please help!! I can't remember any of the answers to my security questions (I made them approximately four years ago and don't know what I was thinking).
How can I change my questions without answering my security questions that I don't know?!??You need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
(105971) -
iTunes requires me to answer to a couple of security questions to authorize me to use it on my new mac book pro, but I don't rimember the answer to them. I can I sort out this problem?
Thank you for helping...
Danila63 Account Security Team (AST)
Check the AppleCare number for your country here:
http://support.apple.com/kb/HE57
Call them up, and let them know you would like to be transferred to the Account Security Team. -
My rescue email is a deleted email and i have no idea what the answers are to my security questions… what do I do? How do I change the rescue email?
You will need to contact Apple support. You can use the link in the quote below from If you forgot the answers to your Apple ID security questions - Apple Support
If you couldn't send a reset email, don't have a rescue email address, or can't access email at your rescue email address, contact Apple Support. -
I live in Australia but when I upgraded to IOS6 it changed my App Store region to the US. How can I change it back? I have been trying to find the answer.
Contact iTunes support & request they clear the balance:
http://www.apple.com/support/itunes/ -
how do I delete photo ALBUMS from my iPHONE 4?
I sync via icloud and I can not see any folders selected in itunes.
I searched the internet and basically there is no one who has the answer (so far)
to how you delete the iphone photo library and misc albums
I have also had every iphone and I am not stupid.
charles altmanReplying to my own post - heh. I downloaded iExplorer (http://www.macroplant.com/iexplorer/) which allowed me access to the files on the phone and there was the phantom movie in the DCIM folder. Deleted it, and all is well - although I still have 0.65gb of Other in iTunes.....
-
My iPod touch wont let me buy anything, i've beem using this account for a couple of years and now it says that this is the first ime this id has been used on my device... it's not.... and to sign in and answer security questions. i cant remember the answers to the questions. How can i fix this without making a new account and losing all my stuff???
From a Kappy post
The Three Best Alternatives for Security Questions and Rescue Mail
1. Use Apple's Express Lane.
Go to https://expresslane.apple.com ; click 'See all products and services' at the
bottom of the page. In the next page click 'More Products and Services, then
'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
ID security questions' and click 'Continue'. Please be patient waiting for the return
phone call. It will come in time depending on how heavily the servers are being hit.
2. Call Apple Support in your country: Customer Service: Contact Apple support.
3. Rescue email address and how to reset Apple ID security questions.
A substitute for using the security questions is to use 2-step verification:
Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID. -
I can't change my apple id password because my security answers don't match. It won't give me any other options and just keeps asking for the answers. What do I do?
Contact the Apple ID Security site from http://support.apple.com/kb/HT5699 or call the AppleCare support number from http://support.apple.com/kb/HE57 and ask to speak with the Account security Team.
-
when i try to buy something it gives me my security questions i put them in right but saying they are worng i try to send me a email of the answers from itunes but it near shows up in my email?
You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
(105412) -
I got a new iPhone and i am trying to buy songs but when I go to buy a song on iTunes it says I have to answer my security questions and I don't remember the answers. I pressed where it says for them to email you your answers but I haven't gotten an email. Is there another way to change or get the answers for the security questions?
If the email hasn't arrived after a few hours and isn't in a spam filter, you need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
(106007) -
I have a lot of money on my Apple ID but when I try to buy something it ask for my security questions that I do not remember the answers to. I also don't have access to the email I used to set up my Apple ID but I do know the password how do I fix this ?
You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
(105412) -
I forgot all of the answers to my security questions and when I set up my apple id I did not add a rescue email, I recently got a new iphone and I cannot purchase anything on it because it asks me to answer my security questions which i can't reset because I do not have a rescue email. what do I do?
this does not help. I have forgotten ALL of the answers to my security questions. I can NOT reset the answers to my security questions without answering two of the three security questions. The other way to reset the answers to these questions is for apple to send me an email on my rescue email addres which I DO NOT HAVE.
-
When I type in my apple ID password to download a song it says it needs additional information so I clicked ok. And then it asked me two security questions that I don't remember the answers to. What do I do? I'm so frustrated
Forgotten Security Questions/Answers
You need to contact Apple by:
1 - Use the Express lane and start here:
https://expresslane.apple.com
then click More Products and Services>Apple ID>Other Apple ID Topics>Forgotten Apple ID security questions.
or
Apple - Support -form iTunes Store - Contact Us
2 - Call Apple in your country by getting the number from here:
http://support.apple.com/kb/HE57
or
Apple ID: Contacting Apple for help with Apple ID account security
3 - Use your rescue email address if you set one up
Rescue email address and how to reset Apple ID security questions
For general information see:
Apple ID: All about Apple ID security questions -
Do you understand me ? I want money back.Because I have problem with LINE In App Purchase.And no one try to resolve this problem.And the answer of NEVER LINE JAPAN they don't have responsibility.I think it will be effect with APPLE image also.I want you to help me everyways to refound my monet back.Could you?
Contact iTunes Store Support.
Maybe you are looking for
-
Changes are not showring up in PO User-Exit (MM06E005)
Hello Experts. Iu2019m working on PO u2018MM06E005u2019 User exit. Iu2019m trying to capture PO Header, PO Items, Vendor General Data & Vendor PO Data. Iu2019ve got all the data what I need but whenever I made changes I donu2019t know for what reason
-
Handling empty values during xml validation
Hello experts, I have a file to file scenario in PI 7.1. I am using xml validation to validate the incoming source file. There are various types of fields in the incoming file including int, decimal and string. They can have a certain enumeration of
-
ITunes 11 will not sync my iPad 2: inflated "other"
Something odd has happened. All of a sudden when I try to sync my iPad to iTunes on my Mac, iTunes thinks there is 21.82GB of "other" and 36.31Gb "free" on the iPad. This is totally wrong. See screen shot attached: When I try to sync (as that might c
-
hi , i have one requirement that , two check boxes are there if i check one check box then one parameter should come and another check box should be disable. i.e. should not give permission to check that. So how can i do please guide me. thank you, r
-
Bought Macbook pro July 12 Apple store in Vancouver Canada, trying to register for the free Lion upgrade online without success. It doesn't take my serial number ?