<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<link rel="stylesheet" href="settings.css" type="text/css">
</head>
<body>
<?php
include("common.inc");
$dbf->select_db($DB);
if($action == 'Add') {
$query = "CREATE DATABASE $DBname";
$result = $dbf->query($query) or die("ERROR while making database, it already excists!");
print("<script>
location.href=\"down.php?msg=Database succesfully made!\";
</script>");
}
else {
$query = "DROP DATABASE $DBname";
$result = $dbf->query($query) or die("ERROR while dropping database, db doesnt excist!");
print("<script>
location.href=\"down.php?msg=Database succesfully deleted!\";
</script>");
}
?>
</body>
</html>
|