Dear Abu,
I want to distinguish the query command based on action (Add or Edit). For example:
if action is in mode = Add, then
$str = $grid->get_dropdown_values("select distinct category_id as k, category_name as v from event_category
WHERE category_id=".$_SESSION['category']);
if action = Edit, then
$str = $grid->get_dropdown_values("select distinct user_id as k, user_name as v from event_name
WHERE category_id=".$_SESSION['category']);
Is this possible? Thanks
1 Answers
Your Answer