Select quray is working but delete query not working.
<table border="1", align="center", width="98%", margin="auto", cellpadding="auto">
<caption><h2>View News</h2></caption>
<tr>
<th><input type="Submit" name="" value="Delete"></th>
<th> S.No. </th>
<th> Title</th>
<th> Description</th>
<th> Delete</th>
<th> Edit</th>
</tr> <?php
$sel="select * from add_news";
$exe=mysql_query($sel);
while ($fetch=mysql_fetch_array($exe)) {
?>
<tr>
<td><input type="checkbox" name=""></td>
<td> <?php echo $fetch ['news_id']; ?> </td>
<td> <?php echo $fetch ['news_title']; ?> </td>
<td> <?php echo $fetch ['news_description']; ?></td>
<td> <?php
if (isset($_GET['id'])) {
$id=$_GET['id'];
$del="DELETE FROM add_news WHERE news_id=$id";
$exe=mysql_query($del);
$fetch=mysql_fetch_array($exe);
$query1 = mysql_query("select * from employee where news_id=$id");
while ($row1 = mysql_fetch_array($query1)) {
echo "<a href=\"http://localhost/website1%20-%20Copy/admin/viewnews.php?id=
$fetch ['news_id']\">
Delete</a>";
?> </td>
<td> Edit</td>
</tr>
<?php } ?>
</table>Inline Code Example Here