Parcourir la source

Joprojam grafanas savietojamiba

master
Vitalijss il y a 5 ans
Parent
révision
5330889d81
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. +1
    -0
      include/install.php
  2. +2
    -1
      index.php

+ 1
- 0
include/install.php Voir le fichier

@@ -57,6 +57,7 @@ echo '<input type="submit" class="w3-button w3-green" name="db_saglabat" value="
PatID bigint(5) NOT NULL AUTO_INCREMENT,
PatDaudzums VARCHAR(5) NOT NULL,
PatDatums TIMESTAMP NOT NULL,
PatGrup VARCHAR(15) NOT NULL,
PRIMARY KEY (PatID));";



+ 2
- 1
index.php Voir le fichier

@@ -26,8 +26,9 @@ $result = mysqli_query($conn,$meklejam);
if(isset($_POST['pievienot']))
{
$psk = 1;
$datums = date('Y-m-d');
//formejam pieprasījumus
$pievienot = "insert into Paterins (PatDaudzums) VALUES ($psk)";
$pievienot = "insert into Paterins (PatDaudzums,PatGrup) VALUES ($psk,'$datums')";
$atnemt = "UPDATE Briketes SET BrikAtlicis = BrikAtlicis-1 WHERE `BrikID` = 1";
mysqli_query($conn,$atnemt);
if (mysqli_query($conn,$pievienot)) {


Chargement…
Annuler
Enregistrer

Powered by TurnKey Linux.