Jump to content

Parse error


jakKersS

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:

[sub]<?php


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))) {
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

Archived

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

×
×
  • Create New...

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.