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
, 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
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'
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
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"
5 matches
Mail list logo