If you upload a file which says 'CREATE TABLE example...'
And then navigate to it, as long as your code is right, it will create the table.
But you would use
php to do that.
- PHP: Select all
$sql = mysql_query("CREATE TABLE example...");
if ($sql) {
echo 'Done';
} else {
echo 'Error';
}
Remembering that you would need to be connected to the database first
If you were then to navigate to that file again, it would give an error because the table already exists. MySQL will not overwrite if the table already exists.
Jack