<?php $pProfile->getAge(); ?> </div> <!-- Gender--> <div class="pProfileItemCon" id="pGenderID"> <?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(); ?>
<li class="sexOrPick"> <?php echo $sexArray[$x]; ?> </li> <?php } } } //SEXUAL ORIENTATION SAVE if ($_GET['sexSave'] == true) { $sexData = cleanInput(trim($_GET['sexData'])); $pProfile->setRquery("SELECT * FROM amistiPersonal WHERE userID=?", array($UID)); $res = $pProfile->getRquery(); if (count($res) > 0) { $pProfile->setRquery("UPDATE amistiPersonal SET pSexualOr=? WHERE userID=?", array($sexData, $UID)); $pProfile->getSexOrient(); } else { $id = autoID(); $pProfile->setRquery("INSERT INTO amistiPersonal VALUES(?,?,?,?,?,?,?,?,?,?,?)", array($id, $UID, NULL, NULL, NULL, '', $sexData, '', NULL, '', '')); $pProfile->getSexOrient(); } } //SEXUAL ORIENTATION EDIT if ($_GET['sexEdit'] == true) { echo $pProfile->editSexOrient(); } //SEXUAL ORIENTATION DELETE if ($_GET['sexDelete'] == true) { if ($pProfile->setRquery("UPDATE amistiPersonal SET pSexualOr=? WHERE userID=?", array('', $UID))) { echo $pProfile->getSexOrient(); }