Feeding SQL error into variable for use later on in code
Posted: Sat Mar 13, 2004 11:24 am
In my code I have to run a query to add a database at the beginning of the code so that the table will be used in my sidebar which is included in the code.
The problem is that if the query fails due to an incorrect database name or a duplicated table name i can't output the error in the correct place on the page.
Is there anyway i can feed any error into a variable and call it at the appropriate place in the code?
The problem is that if the query fails due to an incorrect database name or a duplicated table name i can't output the error in the correct place on the page.
Is there anyway i can feed any error into a variable and call it at the appropriate place in the code?