Using a table $p to display filenames and ultimately link to pdf. The return is a 404.
The requested URL /Applications/MAMP/htdocs/tl/content/2-products/manuals/98-0001-08led-bar-bb.pdf was not found on this server.
The pdf is found if I remove the applications/mamp from url. Just confirming on a host server if file would be found? Different way to implement? Thanks
If you use the $document variable in your if statement, you might as well use it further down the route and there is an extra endif at the end of your code snippet as well as missing parens after modelnum: