Forum Moderators: coopster
"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 ') TYPE=MyISAM' at line 8"
this is the install.php script
require("./config.php");###Install###
If($ssb[cmd]=="install") {
mysql_query("CREATE TABLE $ssb[pre]_shout (
sbid int(11) NOT NULL auto_increment primary key ,
sbname varchar(50) default NULL,
sburl varchar(50) default NULL,
sbshout varchar(255) default NULL,
sbdate varchar(50) default NULL,
sbip varchar(50) default NULL,
) TYPE=MyISAM;") or die(mysql_error());
mysql_query("CREATE TABLE $ssb[pre]_ban (
id int(11) NOT NULL auto_increment primary key ,
ip varchar(50) default NULL,
) TYPE = MYISAM;") or die(mysql_error());
mysql_query("CREATE TABLE $ssb[pre]_filter (
id int(11) NOT NULL auto_increment primary key ,
find varchar(50) default NULL,
replacewith varchar(50) default NULL,
) TYPE = MYISAM;") or die(mysql_error());
Echo("VNETShoutBox $ssb[ver] has been insatlled! Please Delete This file ASAP!\n");
###Not Installed###
} Else {
Echo("<a href=\"$_SERVER[PHP_SELF]?cmd=install\">Click here to install VNETShoutBox $ssb[ver]!</a>\n");
}
?>
I have all of the files in the same directory and it installs on my other site perfectly (diff host POWWEB, the problem im having here is with Lunarpages, whom I've contacted but they said for 3rd party I needed to fix it myself)
Lunarpages is using Mysql v4.0.20-standard and PHP v4.3.8
Powweb is using Mysql v4.0.15-log and PHP v4.3.8
Id really appreciate some help from you php masters...
thanks
løk
remove commas on these lines
sbip varchar(50) default NULL,
ip varchar(50) default NULL,
replacewith varchar(50) default NULL,
as Knowles said
>> if it does not error out on the first one thats not the issue
but they don't belong there either
[edited by: jatar_k at 11:51 pm (utc) on Sep. 1, 2004]