Dokończona lekcja 2
This commit is contained in:
1 parent
a10ce17aa6
commit
83672909f4
6 files changed
+116
-27
No files matched your search
+13
-6
@@ -1,13 +1,20 @@
|
||||
<pre>
|
||||
<?php
|
||||
print_r($_POST);
|
||||
include("config.php");
|
||||
$conn = mysqli_connect($host, $user, $pass, $dbnm);
|
||||
|
||||
$stmt = $conn->prepare("INSERT INTO main(flaga, nominal, nr_kat, `stop`, rok) VALUES(?, ?, ?, ?, ?)");
|
||||
$stmt = $conn->prepare("INSERT INTO main(flaga, nominal, nr_kat, `stop`, rok) VALUES(?, ?, ?, ?, ?);");
|
||||
|
||||
// $stmt->bind_param("issis", $_POST[""])
|
||||
$flaga = intval($_POST["kraj_d"]);
|
||||
$nominal = $_POST["nominal_d"];
|
||||
$nr_kat = $_POST["nr_d"];
|
||||
$stop = intval($_POST["stop_d"]);
|
||||
$rok = $_POST["rok_d"];
|
||||
|
||||
$stmt->bind_param("issis", $flaga, $nominal, $nr_kat, $stop, $rok);
|
||||
$stmt->execute();
|
||||
|
||||
mysqli_close($conn);
|
||||
?>
|
||||
</pre>
|
||||
|
||||
header("Location: ./");
|
||||
exit();
|
||||
?>
|
||||
Reference in new issue
Block a user