Delete Database Record

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Micro Sniff
Forum Newbie
Posts: 1
Joined: Mon Oct 04, 2010 7:12 pm

Delete Database Record

Post by Micro Sniff »

I have a database with an auto increment ID column, a name column, a creator column, a vehicle column, and a code column. What I want is a simple PHP script that will get the ID of a record from a form, and then delete that record from the ID of the record. Something where I can easily put it my database host, username, password, database name, and table name. And the name of the column for the ID is "id" without the "". Also, here is the form code.

[syntax]<form method="get" action="delete.php">
ID:<input style="margin-left: 10px;" id="id" name="id"><input type="submit" value="Delete">
</form>[/syntax]
Post Reply