Answer the question
In order to leave comments, you need to log in
How to remove the word "delete" in the guestbook when refreshing the page?
There is this code:
/* Удаление записи из БД */
if(isset($_GET['id']) && isset($_GET['del'])){
echo 'Удаление';
$query_del ="DELETE FROM msgs WHERE id = ".(int)$_GET['del'];
mysqli_query($link, $query_del);
}
echo '<a href="' . 'http://mysite.local/index.php?id=gbook&del=' .$row['id'] . '">Удалить</a>';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question