<?php $pProfile->getGender(); ?> </div> <!--Sex Orient--> <div class="pProfileItemCon" id="pSexualOr"> <?php $pProfile->getSexOrient(); ?> </div> <!--Relationship--> <div class="pProfileItemCon" id="rRelationshipID"> <?php $pProfile->getRelationship(); ?> </div> <div class="pProfileItemCon" id="pKids"> <?php $pProfile->getPKids(); ?> </div> <div class="pProfileItemCon" id="pLanguage"> <?php $pProfile->getLanguage(); ?> </div>
<li class="rPAutoPick"> <?php echo $rArray[$x]; ?> </li> <?php } } } //RELATIONSHIP SAVE 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(); }