EzEApostle
asked on
PHP <div> problem
Hi Experts,
Hope you can help me, I have a list of data which I'm dumping to the screen and If a record header matches another I dont want it to be repeated, if it doesnt then return the next line of data.
I've managed to get the headers to work correctly but now in certain circumstances it ignores the end table and div tags.
I've looked through the code numerous times but cant figure out how to add the tags where it's finishing, I've attached the code in a txt file with links to a working example and the incorrect example.
Can anyone tell me where I'm going wrong and where to add the end table and div tags?
Thanks in advance
league-detail.txt
Hope you can help me, I have a list of data which I'm dumping to the screen and If a record header matches another I dont want it to be repeated, if it doesnt then return the next line of data.
I've managed to get the headers to work correctly but now in certain circumstances it ignores the end table and div tags.
I've looked through the code numerous times but cant figure out how to add the tags where it's finishing, I've attached the code in a txt file with links to a working example and the incorrect example.
Can anyone tell me where I'm going wrong and where to add the end table and div tags?
Thanks in advance
league-detail.txt
you have to add your missing </div> and </table> tags to the end of your if {} structure. Not only to the end of the else {} part
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks bansidhar, works a treat!
Thanks very much for all the help
Thanks very much for all the help