Variable in where
Variable in where
gpontaro
Posts: 11Questions: 2Answers: 0
in DataTables
Hi all
I would like to introduce a where condition for displaying rows of my table.
->where( 'operatore', $_SESSION['login_user'])
->process( $_POST )
->json();
but unfortunately it seems not working with session variables. Possible ?
Thanks a lot
best regs.
gp
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
That looks like it should work to me - as long as
$_SESSION['login_user']
contains a value that is in theoperatore
column.What happens when you run it - do you always get zero results? If so, that suggests that the condition is not being met.
Allan
it is working I forgot session_start();
thanks a lot !
gp