0) {
$ttstring = GrabTasktypesStringFromAction($action);
//$str .= " and id in ($ttstring)";
$str .= " and p_r.id = $action";
}
$str .= ' ORDER BY id desc';
// echo "grab str ".$str."
action ".$action;
// echo "grab TT11 ";
$query1 = mysqli_query($link, $str);
$subtaskarr = array();
while ($res1 = mysqli_fetch_array($query1)) {
//echo "grab TT ".$res1['id']." tt.id ".$res1['tt.id'];
// print_r($res1);
// echo "
";
$tasktype_id = $res1['id'];
$subtaskarr[$tasktype_id] = $res1;
}
return $subtaskarr;
}
}