News "; $servername = "localhost"; $username = "ntutc"; $password = "zQEgbmQ8hh7Nmhow"; $dbname = "db00721"; // Create connection $mysql = new mysqli($servername, $username, $password, $dbname); // Check connection if ($mysql->connect_error) { die("Connection failed: " . $mysql->connect_error); } echo "
"; $result = $mysql->query("SELECT `date`,`annons`,`id`,`text` from `news` order by `id` DESC limit 15"); while($row = $result->fetch_array()) { $id=$row[2]; $annons=$row[1]; $text=$row[3]; echo "".$row[0]."
".$annons; if(!empty($text)) echo " more info"; echo "


"; } $mysql->close(); echo "
"; include "news_archive.html"; include "bot.html"; ?>