Sì certo, ho usato tutto il codice. Ma non succede nulla.
Questo e il copia/incolla della parte incriminata...
Codice PHP:<?php
$sqlSelect = "SELECT * FROM wrin WHERE modulo = '$modulo' ";
$result = mysqli_query($conn, $sqlSelect);
$path = 'pdf/'.$modulo;
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)) as $file)
{
$files[] = $file->getFilename();
}
if (mysqli_num_rows($result) > 0)
{
?>
<table class="table table-sm" width="145%">
<thead>
<tr>
<th>Wrin</th>
<th>Descrizione</th>
<th>Contenuto</th>
<th>Quantità</th>
<th>Note</th>
</tr>
</thead>
<tbody>
<?php
while ($row = mysqli_fetch_assoc($result))
{
$soggetto = $row['modulo']."_".$row['wrin'];
$class = in_array($soggetto, $files) ? 'pdfbassa' : 'nopdfbassa';
echo "<tr class='testo_light2 " . $class . "'>
<td>".$row['wrin']."</td>
<td>".$row['descrizione']."</td>
<td>".$row['contenuto']."</td>
<td>".$row['quantita']."</td>
<td>".$row['note']."</td>
</tr>";
}
?>
</table>
<?php

Rispondi quotando