|
General Clean Up resets the |
Person Table |
Book Table |
Documentation |
||
|
Note - Create, Drop and Clean Up would be
hidden on a real life system. |
|||||
DROP TABLE loan
Code Listing : loanDropTable.php |
<?php require "../MySQL_Login.php"; // Contains host, username, password, and database $link = mysql_connect($host, $user, $password) or die(mysql_error()); mysql_select_db ($database) or die(mysql_error()); $sql = "DROP TABLE loan"; $result = mysql_query($sql, $link) or die(mysql_error()); mysql_close($link); ?> <html> <head> <title>DROP TABLE loan</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <?php include "nav.php"; echo"<font size=\"+2\"><b><pre>$sql</pre></b></font>"; ?> <h3>Success</h3> <?php include "dump.php"; dump_page(basename($_SERVER[SCRIPT_FILENAME])); // Display the code of this page ?> </body> </html> |