num_rows > 0) { while ($row = mysqli_fetch_assoc($result)) { ?>
)">
" . date('d/m/Y H:i', strtotime($row["insert_date"])) . "

"; echo '' . $row["object"] . ''; $sql_att = "SELECT count(id) AS totale FROM bacheca_attachments WHERE id_bacheca='" . $row["id"] . "'"; $result_att = mysqli_query($con, $sql_att); $bacheca_att = mysqli_fetch_assoc($result_att); if ($bacheca_att["totale"] > 0) { echo ""; } ?>
Non ci sono pubblicazioni in bacheca
"; } $con->close(); ?>