php repozitar
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
353 B

<?php
require("init.php");
$id = $_POST["id"];
$nazev = $_POST["nazev"];
$autor = $_POST["autor"];
$rok_vydani = $_POST["rok_vydani"];
$sql = "UPDATE intro SET
nazev='$nazev',
autor='$autor',
rok_vydani='$rok_vydani'
WHERE id='$id'";
echo $sql;
if(mysqli_query($conn,$sql)){
header("Location: /?up=$id");
} else {
echo mysqli_error($conn);
}