add debug info
This commit is contained in:
parent
204b789d6a
commit
2fd10f8145
1 changed files with 9 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue