Hi,
I have a php script. BEFORE the script there is html. AFTER the script there is html that needs to execute.
The script basically creates a list of mp3 files in a specific directory to display as links. The script also adds informaton about these files (stored in a text file) and displays this information with the links.
There are several places in the script I test or trap for errors, such as the directory the files are supposed to be in doesn't exist. , for some reason, there are no mp3 files, etc.....
Then.... at the end of my script I have a function showErrors(); this function will dispaly an error message variable set somewhere earlier in the error trap code. It will display this message in the same table.
PROBLEM: - If I this function is called, I want the php script (only) to terminate. [B]However[/B] I want the rest of html below the php script to continue, the closing table tag is there, there's a footer etc.
I tried exit; - but it stopped html below the php script from executing.
Any ideas?