Changeset 735 for trunk/include


Ignore:
Timestamp:
Feb 13, 2005, 11:21:11 AM (19 years ago)
Author:
plg
Message:
  • in case of SQL error, stop execution (prevents from errors in synchronization)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r725 r735  
    610610// my_error returns (or send to standard output) the message concerning the
    611611// error occured for the last mysql query.
    612 function my_error($header, $echo = true)
     612function my_error($header)
    613613{
    614614  $error = '<pre>';
     
    617617  $error.= mysql_error();
    618618  $error.= '</pre>';
    619   if ($echo)
    620   {
    621     echo $error;
    622   }
    623   else
    624   {
    625     return $error;
    626   }
     619  die ($error);
    627620}
    628621?>
Note: See TracChangeset for help on using the changeset viewer.