Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-15-2002, 08:58 PM   PM User | #1
umen
New Coder

 
Join Date: Jun 2002
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
umen is an unknown quantity at this point
sending checkbox's value to php

Hello
i have simple question
i have 5 checkbox's in aform i like to delete rows in the db
based on the checked boxes i checked
for example :
i have :
<input type=checkbox name=foo1>
<input type=checkbox name=foo2>
<input type=checkbox name=foo3>
<input type=checkbox name=foo4>
<input type=checkbox name=foo5>

so if i will check foo1 and foo3
it will delete me the row by the id = foo1 and foo3

hope you got my point
umen is offline   Reply With Quote
Old 08-16-2002, 05:39 AM   PM User | #2
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,234
Thanks: 4
Thanked 81 Times in 80 Posts
Spookster will become famous soon enough
$sql = delete from tablename where fieldname = '$foo1' or fieldname = '$foo3';

This belongs in the mysql forum.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!

Last edited by Spookster; 08-16-2002 at 05:58 AM..
Spookster is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:12 AM.


Advertisement
Log in to turn off these ads.