← Back
Editing: descrizioni_ed.php
<?php #______________________________________________________________________# ### made with SmaDIB: Smart Database Interface Builder 0.4.0 ### ### by Smartmedia 2000 http://www.smartmedia2000.it/ ### ### info email: smadib@smartmedia2000.it ### ### released under GPL license http://www.gnu.org/licenses/gpl.txt ### ###___###___###___###___###____###____###____###___###___###___###___### require_once ("../funct.php"); require_once ("sess.php"); require_once ("conn.php"); $ptitolo = "Descrizioni"; $table = "descrizioni"; $html = "y"; require_once ("testacoda.php"); $query = new doQuery(); $testo = $_REQUEST['testo']; $titl = $_REQUEST['titl']; $keyw = $_REQUEST['keyw']; $desc = $_REQUEST['desc']; $testo_nm = "testo_".$lan; $_SESSION['tipo'] = 1; $tipo = $_SESSION['tipo']; $novuoto = array ($testo_nm); $elenco = ""; if ($az=="canc") { $query->update (array ($testo_nm=>''), array()); header ("Location: ".$_SERVER['PHP_SELF']); } if ($az == "up") $query->update (array ($testo_nm=>$testo), $novuoto); else if ($az == "upme") $query->update (array ('titl_'.$lan=>$titl, 'keyw_'.$lan=>$keyw, 'desc_'.$lan=>$desc), array ()); $row = $query->selectFldAs ($table, array ($testo_nm=>'testo', 'titl_'.$lan=>'titl', 'keyw_'.$lan=>'keyw', 'desc_'.$lan=>'desc'), 0); include_once ("areatesto.php"); ?>
Save File
Cancel