Using $Where on Class Datatables
Using $Where on Class Datatables
vincmeister
Posts: 136Questions: 36Answers: 4
in Editor
Hello Allan, Happy New Year
Wish a better year for you
I want to use where with condition
->select(
'v_item_pr_po',
['item_code as value', 'item_name as label'],
['pr_no' => $_REQUEST['values']['prnumber'] ) **AND here**
I want to add q_po > 0
I tried some, but no luck, please advise
Regards,
Danny
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Is this the
$db->select()
method? It isn't clear from your question I'm afraid.You'll need to use
$db->query()
to do that and build up your own query.It might help to know that this is what the
select()
method does.Allan
yes Allan,
$db->select()
methodThis is my working example
and I want to duplicate and add new condition
AND item_code = $item_code
to thisplease advise, thank you
Did you try using the
$db->query()
method? Can you show me the code you used?Allan
Hi Allan,
I solved my problem by using this
thanks