Location: PHPKode > projects > MyDB > webide/checkdelete.php
<?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.
 ****************************************************************/
/** MyDB IDE Version 0.4    **/ 
/** Author Philippe Lewicki **/

/* MydataLib Project. Philippe Lewicki V0.4 6/8/1999 */

// 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