<?php include 'header.php'; include 'model.php'; $selectNews = new Model(); $selectNews->selectAllNews(); $rowsNum = $selectNews->getRowsNum(); $rows = $selectNews->getRows(); $query = $selectNews->getQuery(); ?> <div align="center"> <h1>All news</h1> <table border=1> <tr> <th>News ID</th> <th>Title</th> <th>Date of publishing</th> <th>Operations</th> </tr> <?php for ($i = 0; $i < $rowsNum; $i++) { $rows = mysqli_fetch_array($query); ?> <tr> <td> <p><?php echo $rows['id']; ?> </p> </td> <td width="400px">