Код:
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<style>
</style>
</head>
<body>
<div id="container">
<?php
$conn = mysql_connect ("localhost", "root", "") or die ("Соединение не установлено!");
print ("Соединение установлено!");
mysql_select_db('university');
mysql_query("SET NAMES 'utf8'");
echo '<table border="1">';
echo '<thead>';
echo '<tr>';
echo '<th>Номер</th>';
echo '<th>Название</th>';
echo '<th>1</th>';
echo '<th>2</th>';
echo '</tr>';
echo '</thead>';
echo '<tbody>';
$res = mysql_query("SELECT * FROM news");
$news = mysql_fetch_array($res);
while($news = mysql_fetch_assoc($res)) {?>
<tr>
<td><a href="detail.php?id=<?=$news['id']?>"><?=$news['id']?></td>
<td><a href="detail.php?id=<?=$news['id']?>"><?=$news['program']?> </td>
<td><a href="delete.php?id=<?=$news['id']?>">Удалить</td>
<td><a href="edit_form.php?id=<?=$news['id']?>">Редактировать</td>
</tr><?
}?>
</tbody></table>
<form name="add" action="add_form.php">
<p><input type="submit" value="Добавить программу"></p>
</div>
</html>