08.10
This commit is contained in:
@@ -98,7 +98,7 @@ if ($db) {
|
|||||||
}
|
}
|
||||||
} elseif ($action === 'show_data') {
|
} elseif ($action === 'show_data') {
|
||||||
$shouldShowData = true;
|
$shouldShowData = true;
|
||||||
$res = @mysqli_query($db, "SELECT numer_id, nazwisko, imie, stanowisko, dzial, sekcja FROM pracownicy ORDER BY numer_id");
|
$res = mysqli_query($db, "SELECT numer_id, nazwisko, imie, stanowisko, dzial, sekcja FROM pracownicy ORDER BY numer_id");
|
||||||
if ($res) {
|
if ($res) {
|
||||||
$rows = mysqli_fetch_all($res, MYSQLI_ASSOC) ?: [];
|
$rows = mysqli_fetch_all($res, MYSQLI_ASSOC) ?: [];
|
||||||
mysqli_free_result($res);
|
mysqli_free_result($res);
|
||||||
|
|||||||
Reference in New Issue
Block a user