View Single Post
Old 11-12-2012, 02:56 PM   PM User | #1
stevenryals
New Coder

 
Join Date: Jul 2012
Posts: 60
Thanks: 4
Thanked 0 Times in 0 Posts
stevenryals is an unknown quantity at this point
PHP/SQL delete based on form criteria:

Hi all..
I have a table that i want users to be able to delete based on 2 values..
"name tag" and "cpm"
tag = varchar(25)
cpm = float

I have this form on the main page:

Code:
<form method=post action="purgestrikesearch.php">
<label>Delete Records:  Tag Name:</label>
<input size=10 type=text id=tag name=tag>
<label> Where CPM is greater than:</label>
<input type=text size=2 id=cpmval name=cpmval>
<input type=submit value="Delete">
I can't seem to wrap my head around what to do on my purgestrikesearch.php page..

obiously i'm conncting, but building the query is puzzling me..

any help would be appreciated..

thanks,
-steven
stevenryals is offline   Reply With Quote