I have taken the recomendation to create a new table for each new gallery but i can't get a form to create a new table
if($_GET['mode'] == "add")
{
//////////////////////////////////add gallery to DB//////////////////////////////////////////
$sqldate = date("Ymd");
$name = $_POST['name'];
$sql3 = mysql_query("
CREATE TABLE $name (
`pk` int(11) NOT NULL auto_increment,
dateentered varchar(255) NOT NULL default '00000000',
description text NOT NULL,
image varchar(255) NOT NULL default 'noimage.gif',
PRIMARY KEY (`pk`)
) ") or die ( mysql_error() );
$sql2 = "INSERT INTO gallery VALUES ( '', '$sqldate', '$name'";
if ( @mysql_query($sql2) )
{
$msg = "Your have succesfully Created your new Gallery";
}else
{
$msg = mysql_error();
}
}?>