PHP constructor does not identify variable value

0

Could someone tell me why in "parent :: __ construct ('$ account');", if I put a variable there, does it identify it? I already tried echo $ account before the "parent :: __ construct ('$ account');"

<?php 
require_once('usuarios.v.php');
include 'identifica.php';

class User extends Usuarios{
public function __construct(){
echo $conta;
parent::__construct('$conta');
}
}

and it takes the name of the normal table, but when I put it in it does not identify it. Can anyone help me?

<?php 
require_once('usuarios.v.php');
include 'identifica.php';

class User extends Usuarios{
   public function __construct(){
    parent::__construct('$conta');
}
}
    
asked by anonymous 04.02.2018 / 20:29

1 answer

0

RESOLVED - >

<?php 
require_once('usuarios.v.php');

class User extends Usuarios{
 public function __construct($conta){
include 'identifica.php';
parent::__construct($conta);
}
}
    
04.02.2018 / 21:28