[PHP] checkboxes into MySQL

2001-01-15 Thread Jerry Lake
I know this has been discussed, but it messing with me. in a script I'm working on I pull out an array of checkboxes from a database, how do I store what people select back to the DB all I end up with is the last selection of the array. Jerry Lake -Original Message- From: jeremy

Re: [PHP] checkboxes into MySQL

2001-01-15 Thread jeremy brand
, http://www.yahoo.com On Mon, 15 Jan 2001, Jerry Lake wrote: Date: Mon, 15 Jan 2001 14:03:00 -0800 From: Jerry Lake [EMAIL PROTECTED] To: "'Php-General@Lists. Php. Net'" [EMAIL PROTECTED] Subject: [PHP] checkboxes into MySQL I know this has been discussed, but it messing with m

[PHP] checkboxes into MySQL(trying again)

2001-01-15 Thread Jerry Lake
sorry about that, I forgot to erase the old post info here is a chunk of the code I am using snip //inclusion of pizza toppings from DB $query = ("SELECT * FROM toppings"); $result2 = mysql_db_query($DBName, $query) or die("Error in MySQL query"); echo "table border='1' cellpadding='2'

Re: [PHP] checkboxes into MySQL(trying again)

2001-01-15 Thread jeremy brand
on, 15 Jan 2001 14:11:18 -0800 From: Jerry Lake [EMAIL PROTECTED] To: "'Php-General@Lists. Php. Net'" [EMAIL PROTECTED] Subject: [PHP] checkboxes into MySQL(trying again) sorry about that, I forgot to erase the old post info here is a chunk of the code I am using snip //inclusi

Re: [PHP] checkboxes into MySQL

2001-01-15 Thread Kevin McCarthy
it took me a while to find this out, too. If you have say, 5 checkboxes, name them like so: input type="checkbox" name="musicians[]" value="monk" input type="checkbox" name="musicians[]" value="trane" input type="checkbox" name="musicians[]" value="miles" input type="checkbox"