php - Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) on line 10 -


this question has answer here:

so error

"parse error: syntax error, unexpected '->' (t_object_operator) in /applications/mamp/htdocs/classes/class.manageusers.php on line 10",

does know part of syntax wrong? below 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  } 

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


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -