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] Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.