Hvorfor virker det her ikke?
<?
if($_GET['KILLFILE']=="true"){
unlink("../install.php");
print 'Oh my god, you kill\\'ed a file! :D';
include('domain.php');
include('user.php');
include('password.php');
$link = mysql_connect("localhost", $userinclude, $passwordinclude);
if (!$link) {
die('cound\\'t Connect: ' . mysql_error());
}
$db_selected = mysql_select_db($domain, $link);
if(!$db_selected){
print 'Can\\'t chose Database - Creating a new';
$sql = 'CREATE DATABASE '. $domain;
$sql = 'CREATE TABLE login (
Id int(11) primary key not null auto_increment,
Nick varchar(50),
Password carchar(50),
Body_color tinytext(),
Sitename tinytext(),
Title tinytext()
)';
$sql = mysql_query("INSERT INTO tagwall(Id, Navn, Password, Body_color, Sitename, Title) values('', 'Test', 'f4215715c36cfc0de940daf6d337a0da', 'FFFFFF', 'Your Name', 'Your Site')",$conn) or die (mysql_error());
$sql = 'CREATE TABLE links (
Id int(11) primary key not null auto_increment,
Link_navn text(),
Overskrift text(),
Profil_text text(),
Kategori text(),
Godkend int(11),
Subtext text(),
Extra_text text()
)';
$sql = 'CREATE TABLE sub_links (
Id int(11) primary key not null auto_increment,
Sub_links text(),
Sub_text text()
)';
}
} else {
print 'Error Killing file';
}
?>