This code should delete a row from the database where ID = ID however it doesn't seem to be doing its job
<? if(isset($_GET['id'])) { $query = "DELETE FROM mynews WHERE id = '" . $_GET['id'] . "'"; mysql_query($query); echo "<p align='center'>Deleted</p>"; } else { echo "<p align='center'>Not Deleted</p>"; } ?>
Make a change to this line...
mysql_query ($query) or die (mysql_error ());
Rigth now there is no way to know why it didn't work...