Пример #1
0
} else {
    $fields['pp_bolo_coberturaid'] = dbInteger(control_post($_GET['idcobertura']));
}
if ($_GET['recheionova'] != '') {
    $fields2 = array();
    $fields2['pp_recheio_designacao'] = dbString(control_post($_GET['recheionova']));
    $idrecheio = recheioInsert($fields2);
    unset($fields2);
    $fields['pp_bolo_recheioid'] = dbInteger($idrecheio);
} else {
    $fields['pp_bolo_recheioid'] = dbInteger(control_post($_GET['idrecheio']));
}
if ($_GET['massanova'] != '') {
    $fields2 = array();
    $fields2['pp_massa_designacao'] = dbString(control_post($_GET['massanova']));
    $idmassa = massaInsert($fields2);
    unset($fields2);
    $fields['pp_bolo_massaid'] = dbInteger($idmassa);
} else {
    $fields['pp_bolo_massaid'] = dbInteger(control_post($_GET['idmassa']));
}
$fields['pp_bolo_nome'] = dbString(control_post($_GET['nomebolo']));
$idbolonosso = boloInsert($fields);
unset($fields);
$postfilename = $_GET['filename'];
$postfilename = str_ireplace("\\", "/", $postfilename);
$file_new = explode("/", $postfilename);
foreach ($file_new as $v) {
    //print_r($file_new);
    //echo ' s ';
    if (strpos($v, ".") !== false) {
Пример #2
0
<?php

include '../includes/allpageaj.php';
$massa = control_post($_GET['massa']);
//vou inserir na DB
$fields = array();
$fields['pp_massa_designacao'] = dbString($massa);
massaInsert($fields);
unset($fields);
echo 'ok';
closeDataBase();