Reputation: 329
As seen in the code below, the beginning of this code is showing some errors. It seems that it isn't expecting the private variables.
Any suggestions? It's probably REALLY simple.
class Database { <--ERROR HERE
private db_host = 'localhost'; <--ERROR HERE
private db_user = 'root'; <--ERROR HERE
private db_pass = 'mysql89'; <--ERROR HERE
private db_name = 'faceshit'; <--ERROR HERE
public function connect() { ... REST OF CODE IS FINE
Thanks
Upvotes: 0
Views: 39
Reputation: 5981
the $ symbol is missing before your variable names :
private $db_host = 'localhost';
private $db_user = 'root';
private $db_pass = 'mysql89';
private $db_name = 'faceshit';
Upvotes: 1