delete dataset ????
Posted: Tue Nov 01, 2005 2:07 am
Hi
i made these codes:
But its not working. There is not even a Error message - just a blnak screen!
I hope someone can help me.
joe
i made these codes:
Code: Select all
<html><body>
<form name="form1" method="post" action="del2.php">
<input type="text" name="textfield">
<input name="eqnr" type="submit" id="eqnr" value="Submit">
</form></body></html>Code: Select all
<?php
error_reporting(E_ALL);
$eqnr= (!empty($_POST['eqnr']) ? ($_POST['eqnr']) : '');
if (!empty($month))
{
$connection = mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("safe",$connection) or die (mysql_error());
$deleteresult = mysql_query("DELETE FROM `sam_artikel` WHERE eqnr = '".$eqnr."'") or die(mysql_error());
$affected_rows = mysql_affected_rows($deleteresult,$connection);
echo "<b>Check</b> was executed.";
}
?>I hope someone can help me.
joe