Location: PHPKode > projects > MyDB > mydata/checkdelete.php3
<?php
/*************************************************************
 * The MyDB librairy and applications are product of SQLFusion
 * It may be used and/or distributed under the terms of the Q Public
 * License (QPL) version 1.0, enclosed in the file licence.txt.
 ****************************************************************/
/** MyDATA Version 0.9    **/ 
/** Author Philippe Lewicki **/

require("mydatalocal.inc.php3"); 
$dbconnect = new connect;
$idconx = $dbconnect->start() ; 

//echo "r" ;

//$strYes = "Oui"; 
//$strNo = "Non" ; 

// Go back to further page if table should not be dropped
if (isset($btnDrop) && $btnDrop == $strNo)
   {  header("Location: $goto"); 
      exit;
   }

if (eregi("no", $cfgConfirmDelete))
   {
   $btnDrop = $strYes;
   }

if ($btnDrop == $strYes && strlen($sql_querywhere)>0) 
       {
       $sql_querywhere = stripslashes($sql_querywhere) ;
       $sql_query = "delete from ".$table." ".$sql_querywhere;  
  //   echo $sql_query ; 
       $result = mysql_db_query($db, $sql_query, $idconx);
    
       Header("Location: $goto"); 
      exit; 
      }	


if ($btnDrop == $strNo) {
      Header("Location: $goto"); 
      exit; 
}
?>
Return current item: MyDB