Hello,
The problem is the following. There is a grid with a “non SQL” column, created by hand.
The onRecord event, I set the value of this column like this: {link_felh_cikkcsoport} = ‘<a href="…/grid_felh_cikkcsoport/index.php?par_felh_kod=’.{kod}.’">Jogok</a>’;
The grid_felh_cikkcsoport is a simple grid application, the SQL content of this grid application is:
SELECT
cikkcsoport.kod as cikkcsoport_kod,
nev as cikkcsoport_nev,
if(felh_cikkcsoport.kod is null,0,1) as jogosult,
felh_cikkcsoport.kod as felh_cikkcsoport_kod
FROM
cikkcsoport
left join felh_cikkcsoport on (felh_cikkcsoport.cikkcsoport_kod=cikkcsoport.kod) and (felh_cikkcsoport.felh_kod=[par_felh_kod])
Before the update it works perfectly. When I click to this link: {link_felh_cikkcsoport} the following error message appears:
Parse error: syntax error, unexpected ‘$_SESSION’ (T_VARIABLE), expecting identifier (T_STRING) in /media/ssd/SC8/wwwroot/scriptcase/app/Webraktar/grid_felh_cikkcsoport/index.php on line 561
Here is the source of index.php:
558| if (empty($this->nm_tabela))
559| {
560| $this->nm_tabela = “cikkcsoport left join felh_cikkcsoport on (felh_cikkcsoport.cikkcsoport_kod=cikkcsoport.kod) and (felh_cikkcsoport.felh_kod=” . $_SESSION[‘par_felh_kod’] . “)”;
561| }
562| }
I think the problem is at the " \ " character before $_SESSION[‘par_felh_kod’].
The interesting thing is that when I move the parameter from the “from” to the select section in the SQL statement, the code works.
Please correct this as soon as possible!