//Pass the id of the suggest so that proper HTML element can be made disappear ajaxSuccess(array("suggestid" => $suggest_id)); } break; case 1: //Accept the suggestion if (!$suggest->approve()) { trigger_error("Cannot approved the Suggestion. Error Executing query", E_USER_NOTICE); } else { //Pass the id of the suggest so that proper HTML element can be made disappear ajaxSuccess(array("suggestid" => $suggest_id)); } break; case 2: //Mark the suggestion as don't know if (!$suggest->dontknow()) { trigger_error("Cannot reject suggestion. Error Executing query", E_USER_NOTICE); } else { //Pass the id of the suggest so that proper HMTL element can be made disappear ajaxSuccess(array('suggestid' => $suggest_id)); } break; } break; case "operation_add": global $vanshavali; //Variables should have some value if (isset($_POST['name']) && isset($_POST['gender']) && isset($_POST['sonof'])) { //get the member to be modified $member = $vanshavali->getmember($_POST['sonof']); //add son suggestion to it