<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
  <title>Delete from how-to Database</title>
  <LINK REL="stylesheet" HREF="/PHP/style.css">
  <META NAME="author"      CONTENT="Denice Deatrich">
  <META NAME="description" CONTENT="PHP web-based MySQL DB Management">
  <META NAME="keywords"    CONTENT="PHP web MySQL database">
</head>

<body>
  <h1>Delete from how-to Database</h1>
<?php
  
if( $argv ) {
    
$arg = $argv[0];
    require(
"db_connect.php" );
    
checkDBStatus( );
    if( (
$link=mysql_pconnect($DB_HOST, $DB_USER, $DB_PW)) ) {
      if(
$res=mysql_db_query($DB_NAME,
       
"delete from how_to where rowid = $arg", $link) ) {
        echo
"Delete successful.";
      }
      else {
        
printError( "DELETE", $link );
      }
    }
/*
    else {
      printError( "CONNECT", $link );
    }
*/
  
}
?>
  <hr>
  <div class="footer">
  <address>
    <a href="mailto&#058;Denice&#046;Deatrich&#064;epfl.ch">Denice Deatrich</a>
  </address>
<!-- Created: Sun Jan 16 17:22:34 MET 2000 -->
<!-- hhmts start -->
Last modified: Sat Jun  3 10:49:50 MEST 2000
<!-- hhmts end -->
  </div>
</body>
</html>