Dokończona lekcja 2
This commit is contained in:
1 parent
a10ce17aa6
commit
83672909f4
6 files changed
+116
-27
No files matched your search
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
include("config.php");
|
||||
$conn = mysqli_connect($host, $user, $pass, $dbnm);
|
||||
|
||||
$stmt = $conn->prepare("UPDATE main SET flaga=?, nominal=?, nr_kat=?, stop=?, rok=? WHERE id=?;");
|
||||
|
||||
$flaga = intval($_POST["kraj_u"]);
|
||||
$nominal = $_POST["nominal_u"];
|
||||
$nr_kat = $_POST["nr_u"];
|
||||
$stop = intval($_POST["stop_u"]);
|
||||
$rok = $_POST["rok_u"];
|
||||
$id = $_POST["id_u"];
|
||||
|
||||
$stmt->bind_param("issisi", $flaga, $nominal, $nr_kat, $stop, $rok, $id);
|
||||
$stmt->execute();
|
||||
|
||||
mysqli_close($conn);
|
||||
|
||||
header("Location: ./");
|
||||
exit();
|
||||
?>
|
||||
Reference in new issue
Block a user