jcarr
03-07-2006, 02:13 PM
I’m looking for some code to show a link to a file (PDF document) if it exists.
If the PDF document doesn’t exist, I don’t want the link or the description to be displayed.
Explanation:-
This is for a web page that has a list of competition results throughout the year
e.g.
2006-06-25 Results 03 (link to “20060625.pdf”)
2006-05-07 Results 02 (link to “20060507.pdf”)
2006-04-01 Results 01 (link to “20060401.pdf”)
2006-03-25 Results 03 (link to “20060325.pdf”)
2006-03-07 Results 02 (link to “20060307.pdf”)
2006-02-01 Results 01 (link to “20060201.pdf”)
I want to create the web page with all the competition dates through the year, but only to display the ones that have the associated PDF uploaded (e.g. If only "20060201.pdf" & "20060307.pdf" just the bottom 2 lines would be displayed on the page)
Thanks in advance
John
If the PDF document doesn’t exist, I don’t want the link or the description to be displayed.
Explanation:-
This is for a web page that has a list of competition results throughout the year
e.g.
2006-06-25 Results 03 (link to “20060625.pdf”)
2006-05-07 Results 02 (link to “20060507.pdf”)
2006-04-01 Results 01 (link to “20060401.pdf”)
2006-03-25 Results 03 (link to “20060325.pdf”)
2006-03-07 Results 02 (link to “20060307.pdf”)
2006-02-01 Results 01 (link to “20060201.pdf”)
I want to create the web page with all the competition dates through the year, but only to display the ones that have the associated PDF uploaded (e.g. If only "20060201.pdf" & "20060307.pdf" just the bottom 2 lines would be displayed on the page)
Thanks in advance
John