Example #1
0

<div class="CC">
<div class="ccTop">Personal Information</div>
			 				
       <!-- profile inner -->
<div class="pProfileItemCon" id="pAgeID">
<?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();
?>
Example #2
0
            echo $genderArray[$x];
            ?>
</li>
		 <?php 
        }
    }
}
//GENDER SAVE
if ($_GET['genderSave'] == true) {
    $gData = cleanInput(trim($_GET['genderData']));
    $id = autoID();
    $pProfile->setRquery("SELECT * FROM amistiPersonal WHERE userID=?", array($UID));
    $res = $pProfile->getRquery();
    if (count($res) > 0) {
        $pProfile->setRquery("UPDATE amistiPersonal SET pGender=? WHERE userID=?", array($gData, $UID));
        $pProfile->getGender();
    } else {
        $id = autoID();
        $pProfile->setRquery("INSERT INTO amistiPersonal VALUES(?,?,?,?,?,?,?,?,?,?,?)", array($id, $UID, NULL, NULL, NULL, $gData, '', '', NULL, '', ''));
        $pProfile->getGender();
    }
}
//GENDER EDIT
if ($_GET['genderEdit'] == true) {
    echo $pProfile->genderEdit();
}
//GENDER DELETE
if ($_GET['genderDelete'] == true) {
    if ($pProfile->setRquery("UPDATE amistiPersonal SET pGender=? WHERE userID=?", array('', $UID))) {
        $pProfile->genderEdit();
    }