} else { $query = $objects['oprt']->dataAdaptor("notificationCount", $data); $result = $objects['obj']->query_db($query); $numRows = mysqli_num_rows($result); } } if ($sess->getLevel() == 3 || $sess->getLevel() == 2) { $query = $objects['oprt']->dataAdaptor("notificationCountPers", $sess->getUser()); $result = $objects['obj']->query_db($query); $numRows1 = mysqli_num_rows($result); $numRows = $numRows + $numRows1; } $qry = $objects['oprt']->dataAdaptor("broadcastCount", $data); $res = $objects['obj']->query_db($qry); $broadRows = mysqli_num_rows($res); $arr = array('msg' => 'true', 'error' => '', 'uname' => $sess->getUser(), 'fname' => $sess->getName(), 'lvl_flag' => $sess->getLevel(), 'numRows' => $numRows, 'broadRows' => $broadRows); $jsn = json_encode($arr); echo $jsn; } else { $arr = array('msg' => '', 'error' => 'false'); $jsn = json_encode($arr); echo $jsn; } break; case "fetchNotification": $objects = createObject(); $dta = array('type' => mysqli_real_escape_string($objects['obj']->reCon(), $data->ntf_type), 'user_name' => mysqli_real_escape_string($objects['obj']->reCon(), $data->user_name)); $data1 = array(); $data2 = array(); $grandData = array(); //deleteInvalidNoti();