<?
// Connect to MySQL Server
@mysql_connect($server, $username, $password) or DIE("Couldn't Connect to MySQL Database");
// Select Database
@mysql_select_db($database) or DIE("Couldn't Select Database");
// Create Table
$query = mysql_query("CREATE TABLE users (
id int(11) DEFAULT '' NOT NULL auto_increment,
username varchar(20) NOT NULL default '',
email varchar(30) NOT NULL default '',
password varchar(20) NOT NULL default '',
PRIMARY KEY (id))");
echo "installation complete";
?>
Save this as table.php. Replace $server, $username, $password and $database with your mysql info (if you use variables, just set values for the variables. If you put the actual info into the parenthesis, make sure to use single quotes
mysql_connect('localhost', 'username', 'password');
as opposed too
mysql_connect($server, $username, $password);
Cgraz