Jump to content

Installer


Gatsu

Recommended Posts

Hello, how come I get this error with this installer script?Parse error: syntax error, unexpected T_VARIABLE in config.php on line 14Line 14: $mysql_tablename = "replay";config.php

<?php$adminnick = "***";$adminpass = "***";$pfad = "/***/upload/";$db_host = "localhost";$db_user = "***";$db_pass = "***";$db_name = "***";$templatefolder = "/***/templates/"$mysql_tablename = "replay";$headerfile = "header.html";$footerfile = "footer.html";$allowedtypes = "w3g";$db = mysql_connect($db_host,$db_user,$db_pass) or die(mysql_error());mysql_select_db($db_name, $db) or die(mysql_error());?>

this is the install.php

<?PHPinclude("config.php");mysql_query("CREATE TABLE ".$mysql_tablename." (  id int(11) NOT NULL auto_increment,  filename blob NOT NULL,  beschreibung text NOT NULL,  playernames blob NOT NULL,  playerraces blob NOT NULL,  playerteams blob NOT NULL,  counter int(11) default NULL,  datum date default NULL,  titel text NOT NULL,  map varchar(50) NOT NULL,  PRIMARY KEY  (id),  UNIQUE KEY id (id)) TYPE=MyISAM;",$db) OR DIE ("Mysql-Error: ".mysql_error());echo "Replay-Script successfully installed. Please delete this file now.";?>

Link to comment
Share on other sites

There's a semicolon missing after the line with the $templatefolder assignment.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...