Quote:
3) Your query should preferably have a 'or die("something");' statement to go with it although its not strictly needed in this case.
I personaly, would write a error-handeling class for this sort of application, it takes a lill while to code but saves you alot of time when you can simple go mysql_query($bleh) or $error->message_die_log(mysql_error(),'Some error','the query failed and stuff','index.php); which would forexample log mysel_error(), display a simple error message and redirect to index.php after a given amount of time.
PEAR::DB already covers all the error handling and such. :)