Link to home
Create AccountLog in
Avatar of EzEApostle
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
Avatar of mostart
mostart

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
Avatar of bansidhar
bansidhar
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of EzEApostle

ASKER

Thanks bansidhar, works a treat!

Thanks very much for all the help