first commit

This commit is contained in:
2025-08-07 13:15:31 +01:00
commit d903893b4c
21854 changed files with 4461308 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<?php
include ('../inc/includes.php');
getInventaires();
Html::redirect("../front/central.php");
function getInventaires() {
global $DB;
$query = "SELECT * FROM `Inventaire`";
$result = $DB->query($query);
$rows = array();
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
$rows[] = $row;
if($row['Qt_compt1'] == $row['Qt_compt2']) {
$query2 = "UPDATE `Inventaire` SET `Qt_controle`= `Qt_compt1` where `id`='".$row['id']."' and `Qt_controle` = 0";
//echo $query2;
$result2 = $DB->query($query2);
}
}
}
return $rows;
}