Не выводит данные, подскажите в чем может быть ошибка <?php error_reporting(E_ALL); ini_set('display_startup_errors', 1); ini_set('display_errors', '1'); $hostname = "localhost"; $username = "mysql"; $password = "mysql"; $databaseName = "users"; $connect = mysqli_connect($hostname, $username, $password); mysqli_select_db($connect, $databaseName); $query = 'SELECT * FROM `reception`'; $result1 = mysqli_query($connect, $query); ?> <!DOCTYPE html> <meta charset="utf-8"> <html> <head> <link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <script src ="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js" ></script> <script > $(document).ready(function(){ $('#example').DataTable(); }); </script> </head> <body> <table id="example" class="display" cellspacing="0" width="100%"> <thead> <tr> <th>Date</th> <th>Name</th> <th>Policy</th> <th>Sector</th> <th>Time</th> </tr> </thead> <tbody> <?php while($row1 = mysqli_fetch_array($result1)):?> <tr> <td><?php echo $row1['date'];?></td> <td><?php echo $row1['name'];?></td> <td><?php echo $row1['policy'];?></td> <td><?php echo $row1['sector'];?></td> <td><?php echo $row1['time'];?></td> </tr> <?php endwhile;?> </tbody> </table> </body> </html>
@JenyaJenya пожалуйста пользуйся ббкодами [php] для оформления своих сообщений . С ним лучше читается код. --- Добавлено --- И когда спрашиваешь про ошибку, опиши что именно идёт не так, какие сообщения об ошибках выводятся, если есть.