Aiyaiyai. Ok. What the heck is wrong with this? Bet you 100 bux it’s a simple thing!
Parse error: parse error in /home/www/netgeekz.goldeye.info/member
system/install.php on line 21
[code=php]<?php
$sitename = $_POST[‘sitename’];
$dbhost = $_POST[‘dbhost’];
$dbname = $_POST[‘dbname’];
$dbuser = $_POST[‘dbuser’];
$dbpasswd = $_POST[‘dbpasswd’];
$url = $_POST[‘url’];
$ename = $_POST[‘ename’];
$aname = $_POST[‘aname’];
$apass = md5($_POST[‘apass’]);
$aemail = $_POST[‘aemail’];
/* Database Stuff, do not modify below this line */
$connection = mysql_pconnect(“$dbhost”,”$dbuser”,”$dbpasswd”)
or die (“Couldn’t connect to server.”);
$db = mysql_select_db(“$dbname”, $connection)
or die(“Couldn’t select database.”);
$sql = CREATE TABLE users (
userid int(25) NOT NULL auto_increment,
email_address varchar(25) NOT NULL default ”,
username varchar(25) NOT NULL default ”,
password varchar(255) NOT NULL default ”,
info text NOT NULL,
user_level varchar(16) NOT NULL default ‘0’,
signup_date datetime NOT NULL default ‘0000-00-00 00:00:00’,
last_login datetime NOT NULL default ‘0000-00-00 00:00:00’,
activated enum(‘0′,’1’) NOT NULL default ‘0’,
PRIMARY KEY (userid)
) TYPE=MyISAM COMMENT=’Membership Information’;
mysql_query($sql) or die(mysql_error());
$sql2 = mysql_query(“INSERT INTO users (email_address, username, password, signup_date)
VALUES(‘$aemail’, ‘$aname’, ‘$apass’, now())”) or die (mysql_error());
mysql_query($sql2) or die(mysql_error());
//Write config info to config.php file
$fcontents = implode (”, file (‘config.php’));
$fcontents = ereg_replace(“HOST”,”$dbhost”,$fcontents);
$fcontents = ereg_replace(“DBNAME”,”$dbname”,$fcontents);
$fcontents = ereg_replace(“DB USER”,”$dbuser”,$fcontents);
$fcontents = ereg_replace(“DB PASS”,”$dbpass”,$fcontents);
$fcontents = ereg_replace(“NAME”,”$sitename”,$fcontents);
$fcontents = ereg_replace(“SITEURL”,”$url”,$fcontents);
$fcontents = ereg_replace(“ADMIN EMAIL”,”$adminemail”,$fcontents);
$fcontents = ereg_replace(“SITE EMAIL NAME”,”$ename”,$fcontents);
?>