...

View Full Version : Parse Error



Kev0121
03-27-2009, 10:00 PM
I'm getting a parse error when i run the index.php



Parse error: parse error in C:\wamp\www\register_oop\database.php on line 17


heres my code line 17 is
mysql_close($this->connection));




public function close_connection() {
if(isset($this->connection)) {
mysql_close($this->connection));
}
}

steelaz
03-27-2009, 10:02 PM
// Get rid of extra parenthesis
mysql_close($this->connection));

// Like this
mysql_close($this->connection);

Kev0121
03-27-2009, 10:03 PM
Bingo, thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum