DanielStead Posted January 5, 2006 Share Posted January 5, 2006 $query = "INSERT INTO document VALUES (0,'{$_POST['PGB_ID2']}','{$_POST['pages']}',{$doctype},{$department},'{$DocDate}', now(), {$owner}, '{$_POST['Secure']}', '{$_POST['PGB_ID1']}')"; @mysql_query($query) or die(arse); instead of saying arse i want it to print out the actually error message anyone know how to do this? Link to comment https://forums.phpfreaks.com/topic/3148-how-to-print-out-the-error-message-when-my-query-fails/ Share on other sites More sharing options...
LazyJones Posted January 5, 2006 Share Posted January 5, 2006 See my signature Link to comment https://forums.phpfreaks.com/topic/3148-how-to-print-out-the-error-message-when-my-query-fails/#findComment-10611 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.