What I want to do is have a script to check if another script actually excuted. For example, I have a mail() and right after that I have "Thank you your email has been sent, etc." Now, that will print no matter what even if the mail() function has an error. How to I make the "Thank you" line print ONLY if the mail() function executed properly, in other words without an error?
I also have a guestbook script that says like "Thanks for your submission to our guestbook" but how do I check if it was actually added to the MySQL database?
Hope that is clear enough.