Rimuovo risultati con id a null

This commit is contained in:
Luca 2020-09-23 23:52:36 +02:00
parent 081f80ff1b
commit 2fcf607864
1 changed files with 7 additions and 0 deletions

View File

@ -91,6 +91,13 @@ if (!empty($query)) {
}
}
//Rimuovo risultati con id a null
foreach ( $rows as $i => $r ) {
if ( empty($r['id'] ) ) {
unset($rows[$i]);
}
}
// Creazione della tabella
foreach ($rows as $i => $r) {
$result = [