Explorar el Código

Joprojam grafanas savietojamiba

master
Vitalijss hace 5 años
padre
commit
5330889d81
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
  1. +1
    -0
      include/install.php
  2. +2
    -1
      index.php

+ 1
- 0
include/install.php Ver fichero

@@ -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 Ver fichero

@@ -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)) {


Cargando…
Cancelar
Guardar

Powered by TurnKey Linux.