I use php 0n my win98 but I have some problems with the code
What´s is wrong ??
<?php
$host = "localhost";
$username = "root";
$password = "";
$databasename = "guestbook";
$tablename = "bog";
$stmt = "create table bog (
id int not null auto_increment,
Navn varchar (200),
Alias varchar(200),
Email varchar(200),
PassID varchar(200),
Primary key(id))";
$link = mysql_connect ($host, $username, $password);
print ("Connected successfully");
if (!mysql_select_db($databasename, $link)){
print "couldtn't select database :$databasename";
exit();
}
if(!mysql_query(sprintf($stmt, $tablename), $link)){
print "couldn't create table : $tablename";
exit();
}
echo "Table created succesfully";
mysql_close ($link);
?>