Hi guys
i have a problem with a php script , i am trying to install it and it gives me this error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'eccaone_list' at line 1
check the link:
http://www.eccao.net/maillist/create.php
this is the creat.php file
<?php
include("connect.php");
$link = "eccaone_list";
$res = mysql_query($link) or die(mysql_error());
mysql_select_db("eccaone_list");
$link = "
CREATE TABLE `newsletters` (
`name` text NOT NULL,
`content` text NOT NULL,
`id` int(11) NOT NULL auto_increment,
PRIMARY KEY (`id`)
) AUTO_INCREMENT=1;";
$res = mysql_query($link) or die(mysql_error());
$link = "
CREATE TABLE `users` (
`name` varchar(50) NOT NULL default '',
`email` varchar(50) NOT NULL default '',
`date` text NOT NULL,
`status` text NOT NULL,
`unsubscribed` text NOT NULL,
`id` int(11) NOT NULL auto_increment,
PRIMARY KEY (`id`)
) AUTO_INCREMENT=1;";
$res = mysql_query($link) or die(mysql_error());
if ($res)
die("<p>Succesfully made database. Please delete this file for security reasons.</p>");
?>