You could try setting a boolean variable inside that catch and somewhere outside the table check to see if that variable is true. If yes, then print the message.
posted 13 years ago
Thanks very much for the help.
I was just wondering if you could explain why when i had my code in that catch statement and it printed the message the entire page above that catch code got over written and only the error message and the "Add New" <a> tag got displayed.
When i changed it to the following the page prints out correctly.