HTML interesse |
|
<?php
include('functions.php');
echo connectdb();
if(mysql_query("DELETE * FROM nieuws WHERE id = '".$_GET['id']."'"))
{
echo "This newsitem was succesfully deleted!";
}
else
{
echo "This newsitem could not be deleted!";
}
?>
<?php include('functions.php'); if(mysql_query("DELETE * FROM nieuws WHERE id = '".$_GET['id']."'")) { echo "This newsitem was succesfully deleted!"; } else { echo "This newsitem could not be deleted!"; } ?>
Als ik deze code laat uitvoeren krijg ik als resultaat "This newsitem could not be deleted!" Hoe komt dit?
|