When I tested your code at my site in free hosting, I got "no Table created" message, not
"Access denied ..." message like you. With--id int(11) NOT NULL auto_increment--there should
be--primary key (id), otherwise table will not be created. After running the following code,
I got "Success in table creation!" message. So, please try this code.
PHP Code:
<?php
//Database connection script
$query = "CREATE TABLE my_Members(
id int(11) NOT NULL auto_increment,
firstname varchar(255) NOT NULL,
middlename varchar(255) NULL,
lastname varchar(255) NOT NULL,
primary key (id)
)";
$result = mysql_query($query);
if($result){
print "Success in table creation!";
}
else{
print "no Table created";
}
exit();
?>