hi i picked this script up from a site and im trying to install it in my system and i came across the error below
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 12
The section for that error is
require("../calendar/config.php");
require("./lang/lang.admin." . LANGUAGE_CODE . ".php");
mysql_connect(DB_HOST, DB_USER, DB_PASS) or die(mysql_error());
mysql_select_db(DB_NAME) or die(mysql_error());
mysql_query("CREATE TABLE " . DB_TABLE_PREFIX . "mssgs (
id mediumint(5) unsigned NOT NULL auto_increment,
uid tinyint(3) unsigned NOT NULL default '0',
m tinyint(2) NOT NULL default '0',
d tinyint(2) NOT NULL default '0',
y smallint(4) NOT NULL default '0',
start_time time NOT NULL default '00:00:00',
end_time time NOT NULL default '00:00:00',
title varchar(50) NOT NULL default '',
text text NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM") or die(mysql_error());
Also i noticed another error in eventdisplay.php
*/ = $lang['deleteconfirm'] ?>"; THIS LINE HAS THE ERRORS
if (confirm(msg)) {
opener.location = "eventsubmit.php?flag=delete&id=" + eid + "&month=<?
/*
if anyone as a solution for this would be great :)