PHP:
/* Script per creare le tabelle una volta create cancellare il codice ! */
mysql_connect( '', '', '' );
mysql_select_db('');
$query = 'CREATE TABLE IF NOT EXISTS location (
ID int(255) unsigned not null primary key auto_increment,
location varchar(255) not null
)';
$result = mysql_query($query);
$query = 'CREATE TABLE IF NOT EXISTS metalocation (
location int(255) unsigned not null primary key,
nome varchar(255) not null,
icon int(2) unsigned not null,
data tinytext not null,
gradi tinytext not null,
simbolo tinytext not null,
descrizione text not null
)';
$result = mysql_query($query);
mysql_close();
mysql_free_result($result);