Hello.
There is such code:
<?php $select_sql = "SELECT id, title, pages_title FROM ".$pages_table.""; $result = mysql_query($select_sql); $row = mysql_fetch_array($result); if(isset($_GET['del'])) { $query = "DELETE FROM ".$pages_table." WHERE `id` = '$id'";//Удаляем запись из БД mysql_query($query); } do { $pages = $row['id']; printf ("<tr class='tr'> <td id='p_num'>".$row['id']."</td> <td class='num_title1'><b>%s</b></td> <td class='num_title'> <b>%s</b> </td> <td class='num_title2'> <a href='?edit=".$row['id']."'>Редактировать</a><a href='?del=".$row['id']."'> Удалить</a> </td> </tr>",$row['title'], $row['pages_title'] ); } while($row = mysql_fetch_array($result)) ?> Please tell me how to make it delete the selected field, or if the link is clicked, the edit will go to the edit.php page with the selected id.