1
I’m doing a search in the BD where the parameters are passed and use LIKE to search, only the search returns me the error PHP Fatal error: Cannot pass Parameter 2 by Reference
$this->Query = $this->Conn->prepare('select * '.
'from tabela '.
'inner join tabela2 on tabela.pr_status = prstatus.prstatus_status '.
'where :tableColumn like :inputSearchProtocol'
);
$this->Query->bindParam(':tableColumn' ,$this->tableColumn);
$this->Query->bindParam(':inputSearchProtocol' ,'%'.$this->inputSearchProtocol.'%');
The server error points to the line with the field '%'. $this->inputSearchProtocol.'%'