Codice PHP:
<?php
session_start();
include ("ConnessioneDB.php");
$sql_query =
"
CREATE TABLE riparatori_".$_POST["Perito"]."
(
Id int(3) NOT NULL auto_increment,
User varchar(20) NOT NULL default '',
LunM int(1) NOT NULL default '0',
LunP int(1) NOT NULL default '0',
MarM int(1) NOT NULL default '0',
MarP int(1) NOT NULL default '0',
MerM int(1) NOT NULL default '0',
MerP int(1) NOT NULL default '0',
GioM int(1) NOT NULL default '0',
GioP int(1) NOT NULL default '0',
VenM int(1) NOT NULL default '0',
VenP int(1) NOT NULL default '0',
NomeUser varchar(40) NOT NULL default '',
PRIMARY KEY (Id)
)
TYPE=MyISAM;
";
$ris_query = mysql_query($sql_query);
echo
"
</p>
<div align=center>
<font size=2 face=Arial color=#FFFFFF>
Tabella creata con successo.
<a href=\"MenuWebmaster.php\">TORNA</a>
</font>
</div>
";
?>
</font>
<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#000066"">
</body>
</html>
Non mi crea la tabella nel db, qualcuno sa perchè?grazie