diff --git a/php-insert/index.php b/php-insert/index.php new file mode 100644 index 0000000..ddef3d8 --- /dev/null +++ b/php-insert/index.php @@ -0,0 +1,41 @@ + + + + + + + + + + + + +
+
+
+ +
+ + + + + + + + \ No newline at end of file diff --git a/php-insert/init.php b/php-insert/init.php new file mode 100644 index 0000000..a8a271e --- /dev/null +++ b/php-insert/init.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/php-insert/insert.php b/php-insert/insert.php new file mode 100644 index 0000000..73f6b2d --- /dev/null +++ b/php-insert/insert.php @@ -0,0 +1,22 @@ + echo $sql . "
"; + +//vykonání příkazu a následný "report" +if (mysqli_query($conn,$sql) == TRUE) { + echo "příkaz byl vykonán"; +} else { + echo "Error:" .$sql."
". mysqli_errno($conn); +} +//PŘESMĚROVÁNÍ NA HL.STRÁNKU +header("Location: /") +?> \ No newline at end of file