<?php
$conn=@mysql_connect("localhost", "*", "*")
or die("Err:Conn");
#select the specified database
$rs = @mysql_select_db("deals", $conn) or die("Err😃b");
#create the query
$sql="delete from computerdeals where id=($id)";
#execute query
$rs=mysql_query($sql,$conn);
if($rs){
echo("Record deleted:$id");
}
}
?>
<form action="<?php echo($PHP_SELF); ?>" method="post">
ID: <input type="text" name="id" size="3">
<br>
<input type="submit" value="Submit">
</form>'
**** Okay, im trying to create a form to delete from a table by ID number... But nothing shows? Thanks.