From 8a59635e544df2de2e886c9ff230d3d5abe8bed9 Mon Sep 17 00:00:00 2001 From: Vitalijss Date: Mon, 19 Oct 2020 12:27:45 +0300 Subject: [PATCH] =?UTF-8?q?Instal=C4=81cij=C4=81=20ievie=C5=A1am=20ar?= =?UTF-8?q?=C4=AB=20nopirkto=20brike=C5=A1u=20skait?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/install.php | 6 +++++- index.php | 12 ++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/include/install.php b/include/install.php index fde1148..c2d9d1a 100644 --- a/include/install.php +++ b/include/install.php @@ -25,6 +25,8 @@ echo ''; echo ''; echo ''; echo '
'; +echo ''; +echo '
'; echo ' @@ -37,6 +39,7 @@ echo '

Reģistrēt iztērētās briketes

+ Atlikuši '.$row['BrikAtlicis'].' iepakojumi'; + } ?> Briketes
@@ -26,9 +32,9 @@ if(isset($_POST['pievienot'])) $atnemt = "UPDATE Briketes SET BrikAtlicis = BrikAtlicis-1 WHERE `BrikID` = 1"; mysqli_query($conn,$atnemt); if (mysqli_query($conn,$pievienot)) { - echo "New record created successfully"; + //echo "New record created successfully"; } else { - echo "Error: " . $pievienot . "
" . mysqli_error($conn); + //echo "Error: " . $pievienot . "
" . mysqli_error($conn); } echo ' '; + header( "refresh:2;url=index.php" ); } + ?>