Jump to content


Photo

how to print out the error message when my query fails


  • Please log in to reply
1 reply to this topic

#1 DanielStead

DanielStead
  • Members
  • Pip
  • Newbie
  • 6 posts

Posted 05 January 2006 - 09:00 AM


$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?

#2 LazyJones

LazyJones
  • Members
  • PipPipPip
  • Advanced Member
  • 78 posts

Posted 05 January 2006 - 09:22 AM

See my signature




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users