Example #1
0
if ($_GET['pNKids'] == true) {
    $pNKidsData = cleanInput(trim($_GET['pNKidsData']));
    $pProfile->setRquery("SELECT * FROM amistiPersonal WHERE userID=?", array($UID));
    $res = $pProfile->getRquery();
    if (count($res) > 0) {
        $pProfile->setRquery("UPDATE amistiPersonal SET pKids=? WHERE userID=?", array($pNKidsData, $UID));
        $pProfile->getPKids();
    } else {
        $id = autoID();
        $pProfile->setRquery("INSERT INTO amistiPersonal VALUES(?,?,?,?,?,?,?,?,?,?,?)", array($id, $UID, NULL, NULL, NULL, '', '', '', $pNKidsData, '', ''));
        $pProfile->getPKids();
    }
}
//PNEDIT OF CHILDREN
if ($_GET['pNEdit'] == true) {
    echo $pProfile->editPKids();
}
//PNDELETE CLICKED
if ($_GET['pNDelete'] == true) {
    if ($pProfile->setRquery("UPDATE amistiPersonal SET pKids=? WHERE userID=?", array(NULL, $UID))) {
        echo $pProfile->getPKids();
    }
}
//NUMBER OF CHILDREN ADD PROFIle
if ($_GET['nocAdd'] == true) {
    $val = $_GET['nocAddTrue'];
    echo $pProfile->getPKids('true');
}
//======================================  LANGUAGE  ======================================
//SAVE LANGUAGE
if ($_GET['langSave']) {