Removed a duplicated removal code

This commit is contained in:
Jean-Philippe Guérard 2012-01-10 21:29:34 +01:00
parent aa8523e318
commit c665ece920

View File

@ -313,12 +313,6 @@ if (isset($_POST["confirmesuppression"]) || isset($_POST["confirmesuppression_x"
$nbuser=$user_studs->RecordCount(); $nbuser=$user_studs->RecordCount();
$date=date('H:i:s d/m/Y:'); $date=date('H:i:s d/m/Y:');
//destruction des données dans la base SQL
$sql = 'DELETE FROM sujet_studs WHERE id_sondage = ' . $connect->Param('numsondage') . '; ' .
'DELETE FROM user_studs WHERE id_sondage = ' . $connect->Param('numsondage') . '; ' .
'DELETE FROM comments WHERE id_sondage = ' . $connect->Param('numsondage') . '; ' .
'DELETE FROM sondage WHERE id_sondage = ' . $connect->Param('numsondage') ;
$connect->StartTrans(); $connect->StartTrans();
$req = 'DELETE FROM sondage WHERE id_sondage = ' . $connect->Param('numsondage') ; $req = 'DELETE FROM sondage WHERE id_sondage = ' . $connect->Param('numsondage') ;