Current Path : /home/da040400/www_root/adm/
Upload File :
Current File : /home/da040400/www_root/adm/pridaj_aktualita.php

<?php
	require_once('auth.php');
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Výlety</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=utf8">
<META name="description" content="Stránka katedry humánnej geografie a demogeografie">
<META name="keywords" content="Demografia, humánna geografia, študijný program, administratíva">
<META name="author" content="vladimir bacik" >
<META name="copyright" content="http://www.sodbtn.sk">
<meta name="Robots" content="index,follow">
<meta name="Revisit-after" content="5">  
<LINK href="styly.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/demo.css">

<body>

<?php

$aktualita=$_POST['aktualita'];
$popis_akt=$_POST['popis_akt'];
$confirm=$_POST['confirm'];


require("spojenie.php"); # Vložíme skript, ktorý obsahuje nastavenie pripojenia.
$spoj = MySQL_Connect($SQL_Server, $SQL_Uzivatel, $SQL_Heslo) OR DIE(MySQL_Error());
MySQL_Select_Db($Databaza) OR DIE(MySQL_Error());
mysql_query("set names utf8");

#mysql_query("INSERT INTO `odkazyext` VALUES (NULL, '$id_predmetu', '$odkaz', '$odkaz_od', NOW(), '$pic', '$typ', '$vsetko')") ;
mysql_query("INSERT INTO `andy_aktuality` VALUES (NULL, '$aktualita', '$popis_akt', NOW(), '$confirm')") ;

#//Writes the photo to the server 
#if(move_uploaded_file($_FILES['subor']['tmp_name'], $target)) 
#{ 

#//Tells you if its all ok 



echo "<center><br><br><span class='uspech'>Aktualita bola úspešne vložená na stránku</span><br><br>";
echo "<a class='mail' href='index.php'>späť na úvodnú stránku</a></center>";



?>



</body>
</html>

DR.KR LITE SHELL COPYRIGHT 2016