Viewing File: /people/testlab/www/testlab.com.pl/panel/zapisz_strone.php
<?
include('../config.php');
if (!islogin()) die();
include('../inc/db.php');
$db = new DBConnect();
//$sql= "UPDATE `pages` SET `tresc` = '".$_POST['text']."' where id='".$_POST['id']."';";
//$result = $db ->query($sql);
$sql= "UPDATE `pages` SET `menu` = '".$_POST['kat_menu']."' where id='".$_POST['id']."';";
$result = $db ->query($sql);
$sql= "UPDATE `pages` SET `desc` = '".$_POST['desc']."' where id='".$_POST['id']."';";
$result = $db ->query($sql);
$sql= "UPDATE `pages` SET `title` = '".$_POST['title']."' where id='".$_POST['id']."';";
$result = $db ->query($sql);
$sql= "UPDATE `pages` SET `keywords` = '".$_POST['keywords']."' where id='".$_POST['id']."';";
$result = $db ->query($sql);
$sql= "UPDATE `pages` SET `sidemenu` = '".$_POST['polozenie']."' where id='".$_POST['id']."';";
$result = $db ->query($sql);
$sql= "UPDATE `pages` SET `skrypty_dodatkowe` = '".$_POST['skrypty_dodatkowe']."' where id='".$_POST['id']."';";
$result = $db ->query($sql);
$sql= "UPDATE `pages` SET `widoczna` = '".$_POST['widoczna']."' where id='".$_POST['id']."';";
$result = $db ->query($sql);
$sql= "UPDATE `pages` SET `zachowanie` = '".$_POST['zachowanie']."' where id='".$_POST['id']."';";
$result = $db ->query($sql);
$sql= "UPDATE `pages` SET `po_zalogowaniu` = '".$_POST['po_zalogowaniu']."' where id='".$_POST['id']."';";
$result = $db ->query($sql);
if ($result != 0) echo "<font color=green>Zmiany zostały zapisane.</font>";
else echo "<font color=red>Wystąpił błąd podczas zapisu danych!</font>";
?>
Back to Directory
File Manager