Menu
HI all,
I want to delete a record based on a field input.
Here is my setup:
There are two files.
First file: enterdelete.php
<html>
<body>
<form action=delete.php method=GET>
Delete:
Item #: <input type=text name=p value=”11″ >
<p>
<input type=submit>
</form>
</body>
</html>
Second file:
<html>
<body>
<?php
mysql_connect (xxx, cccccccc, tttttttt);
mysql_select_db (order1);
if ($p == “”)
{$p = ‘%’;}
$result = mysql_query (“DELETE * FROM frames
WHERE p = ‘$p%’
“);
print “Test”;
?>
</body>
</html>
I ran these files, but records wasn’t deleted.
Please help me to do this task.
Thanks a lot.
SS