Installer

Desired password for admin:
"; } else { echo "Table 'Blog' created successfully.
"; } # Try to create 'blog_users' table $sql = "CREATE TABLE `blog_users` (`id` int(11) NOT NULL AUTO_INCREMENT,`username` varchar(20) UNIQUE NOT NULL,`name` varchar(40) NOT NULL,`password` varchar(64) NOT NULL,`session` int(64), PRIMARY KEY (`id`)) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;"; $result = mysql_query($sql); if (mysql_error()) { echo mysql_error() . ".
"; } else { echo "Table 'Users' created successfully.
"; } # Try to create 'admin' user $sql = "INSERT INTO `blog_users` (`id`, `username`, `name`, `password`, `session`) VALUES (NULL, 'admin', 'Admin', '$pw', NULL);"; $result = mysql_query($sql); if (mysql_error()) { echo mysql_error() . ".
"; } else { echo "User 'admin' created successfully.
"; } end_html(); ?>