I am stumped,
I have this code its on a page called admin.install.php you run it and it creates the text database puts tables into it and 1 new entry for the admin but when i upload it and goto the url all it does is show a blank page and does do anything on the script its just blank i click view source and just blank page no error messages just blank. I have tinkered with it for a awhile now anyone see anything i dont.
<?php
$Inc_class = "tdb.class.php";
$Inc_func = "admin.func.php";
include ($Inc_class);
include ($inc_func);
$directory = "/db/";
$filename = "admins.tdb";
tdb::createDatabase("/db/", "admins.tdb");
$db = new tdb($directory, $filename);
$db->createTable("AdminUsers", array(array("username", "string", 25), array("password", "string", 8), array("userlevel", "num", 15), array("profile", "memo"), array("userid", "id")));
$db->createTable("Column", array(array("by_user", "string", 25), array("title", "string", 30), array("text", "memo"), array("columnid", "id")));
$db->createTable("Review", array(array("by_user", "string", 25), array("game", "string", 30), array("text", "memo"), array("reveiwid", "id")));
$db->createTable("News", array(array("by_user", "string", 25), array(array("date", "string", 8), array("news", "memo"), array("newsid", "id")));
$db->createTable("Link", array(array("by_user", "string", 25), array(array("url", "string", 35), array(array("title", "string", 30), array("description", "memo"), array("linkid", "id")));
$db->setFp("user", "AdminUsers");
$password = t_encrypt("admin", $key);
$db->add("user", array("username" => "Admin", "password" => $password, "userlevel" => "3", "profile" => "I am the Admin!"));
echo "<HTML>
<HEAD>
<TITLE>Install</TITLE>
</HEAD>
<body>
<font>installed delete this after done</font>
</body>
</HTML>";
?>
all help will be usefull.