add debug info

This commit is contained in:
sparkyx 2007-11-01 17:36:58 +00:00
parent 204b789d6a
commit 2fd10f8145

View file

@ -60,15 +60,17 @@ if ( isset ($_POST["DATABASE"]) ) {
$l_id,
domaine,
$_POST["FMOD_ID"]);
echo_debug($Sql);
ob_start();
echo_debug("[".$Sql."]");
// ob_start();
if ( pg_query($cn,$Sql)==false) {
ob_clean();
ExecSql($cn,"delete from ac_dossier where dos_id=$l_id");
echo "<h2 class=\"error\"> Base de donnée ".domaine."mod".$_POST['FMOD_ID']." est accèdée, déconnectez-vous d'abord</h2>";
exit;
echo "[".$Sql."]";
// ob_clean();
ExecSql($cn,"delete from ac_dossier where dos_id=$l_id");
echo "<h2 class=\"error\"> Base de donnée ".domaine."mod".$_POST['FMOD_ID']." est accèdée, déconnectez-vous d'abord</h2>";
exit;
}
ob_flush();
// ob_flush();
$Res=ExecSql($cn,"insert into jnt_use_dos (use_id,dos_id) values (1,$l_id)");
// Connect to the new database
$cn=DbConnect($l_id);