if ($_GET['relSave'] == true) { $relData = cleanInput(trim($_GET['relData'])); $pProfile->setRquery("SELECT * FROM amistiPersonal WHERE userID=?", array($UID)); $res = $pProfile->getRquery(); if (count($res) > 0) { $pProfile->setRquery("UPDATE amistiPersonal SET pRelationship=? WHERE userID=?", array($relData, $UID)); $pProfile->getRelationship(); } else { $id = autoID(); $pProfile->setRquery("INSERT INTO amistiPersonal VALUES(?,?,?,?,?,?,?,?,?,?,?)", array($id, $UID, NULL, NULL, NULL, '', '', $relData, NULL, '', '')); $pProfile->getRelationship(); } } //RELATIONSHIP EDIT if ($_GET['rEdit'] == true) { echo $pProfile->editRelationship(); } //RELATIONSHIP DELETE if ($_GET['rDelete'] == true) { if ($pProfile->setRquery("UPDATE amistiPersonal SET pRelationship=? WHERE userID=?", array('', $UID))) { echo $pProfile->getRelationship(); } } //RELATIONSHIP ADD PROFILE if ($_GET['relationAdd'] == true) { echo $pProfile->getRelationship(true); } //=========================== NUMBER OF CHILDREN ============================== //NUMBER OF CHILDREN PNKIDS SAVE if ($_GET['pNKids'] == true) { $pNKidsData = cleanInput(trim($_GET['pNKidsData']));