$aAM = monthToNumber(trim($_GET['aAM'])); $aAY = cleanInput(trim($_GET['aAY'])); $pProfile->setRquery("SELECT pDOBD,pDOBM,pDOBY FROM amistiPersonal WHERE userID=?", array($UID)); $res = $pProfile->getRquery(); if (count($res) > 0) { if ($pProfile->setRquery("UPDATE amistiPersonal SET pDOBD=?, pDOBM=?, pDOBY=? WHERE userID=?", array($aDD, $aAM, $aAY, $UID))) { } } else { $id = autoID(); $pProfile->setRquery("INSERT INTO amistiPersonal VALUES(?,?,?,?,?,?,?,?,?,?,?)", array($id, $UID, $aDD, $aAM, $aAY, '', '', '', NULL, '', '')); } echo $pProfile->getSaveAge(); } //EDIT AGE if ($_GET['ageEdit'] == true) { echo $pProfile->editAge(); } //AGE DELETE if ($_GET['ageDelete'] == true) { if ($pProfile->setRquery("UPDATE amistiPersonal SET pDOBD=?, pDOBM=?, pDOBY=? WHERE userID=?", array(NULL, NULL, NULL, $UID))) { echo $pProfile->editAge(); } } //AGE ADD PROFILE if ($_GET['ageAdd'] == true) { echo $pProfile->getAge(true); } //===================GENDER OPERATIONS ============================= $genderArray = array("Male", "Female", "Transgender"); //GENDER INPUT KEYUP if ($_GET['genderType'] == true) {