Jump to content



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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...