jakKersS Posted October 22, 2006 Share Posted October 22, 2006 My index.php doesnt show anything at all but the installer.php shows:Parse error: syntax error, unexpected '.', expecting ')' in /home/www/mysql.php on line 10Mysql.php code:[sub]<?phpclass mysql { var $link; var $querycount=0; var $querylist=''; function connect($evolution.awardspace.com:38371, $crazygamez_wtf, $I PUT MY PASS HERE, $crazygamez_wtf) { $this->link = mysql_connect($host, $username, $password) or die("Could not connect."); mysql_select_db($db) or die("Could not find database."); } function query($query) { if (!($result = mysql_query($query))) { ob_end_clean(); die("SQL Error: ".mysql_error()."<br />Query: $query<br />"); } $this->querycount++; $this->querylist.="<br />$query"; return $result; } function result($result, $row, $name) { return mysql_result($result, $row, $name); } function numrows($result) { $numrows = mysql_num_rows($result); return $numrows; } function affectedrows() { return mysql_affected_rows($this->link); }}?>[/sub] Link to comment https://forums.phpfreaks.com/topic/24734-parse-error/ Share on other sites More sharing options...
fenway Posted October 22, 2006 Share Posted October 22, 2006 You haven't properly quoted the first parameter to mysql_connect. Link to comment https://forums.phpfreaks.com/topic/24734-parse-error/#findComment-112798 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.