-1

So i get the error

"Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /Applications/MAMP/htdocs/classes/class.ManageUsers.php on line 10",

does anyone know what part of the syntax is wrong? Below is the relevant class.

5    class ManageUsers {
6   public $link;
7   
8   function __construct(){
9       $db_connection = new dbConnection();
10      $this->link = db_connection->connect();
11      return $this->link;
12  }
Saty
  • 22,443
  • 7
  • 33
  • 51
user3709389
  • 55
  • 1
  • 1
  • 5
  • you need to test all the answer that are given. and the most suitable answer will be marked by you. also you can vote up other helpful solution also if possible. it will help future visitors. thanks. – Alive to die - Anant Jun 01 '15 at 06:54

1 Answers1

2

db_connection->connect(); should be $db_connection->connect(); notice the missing $

Musa
  • 96,336
  • 17
  • 118
  • 137