Jump to content


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


Parse error

Recommended Posts

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 10

Mysql.php code:


class 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))) {
die("SQL Error: ".mysql_error()."<br />Query: $query<br />");

$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);



Share this post

Link to post
Share on other sites
You haven't properly quoted the first parameter to mysql_connect.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.