I have created a script that displays the content from my database.
A button is linked to delete.php, however the delete.php doesn't work.
<?php
   $connect = @mysql_connect('localhost','Jazzoet','XEpCnYrZXLDHvYy3');
   mysql_select_db('jazzoet_optredens');
   $query = "SELECT * FROM optredens"; 
   $result = mysql_query($query);
   while($row = mysql_fetch_array($result)){  
          echo '<ul><li>' . $row['Naam'] . '</li><li>'  . $row['Datum'] . '</li><li>' .  $row['Omschrijving'] . '</li><li><a href=delete.php?id='.$row['OptredenId'].' >Delete</a></li></ul>';
   }
   mysql_close();
?>
delete.php
<?php
    $connect = @mysql_connect('localhost','Jazzoet','XEpCnYrZXLDHvYy3');
    mysql_select_db('jazzoet_optredens');
    $query = "DELETE  FROM optredens WHERE OptredenId='$_GET[id]'"; 
 ?>
 
     
    