set array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a SET field in MYSQL.
'1. Type One','2. Type Two','3. Type Three'

The user can multi-select
<select name="DPRtype[]" multiple>
<option value="1. Type One">
<option value="2. Type Two">
<option value="3. Type Three">
</select>

I just dont know how to express $_POST[DPRtype] to be able to build the $SQL to express the separate possibilities.

$sql = "UPDATE `taylorjo`.`CRTP_CGA`
SET
`DPRtype` = '$_POST[DPRtype]'
";


Thanks. Not a newbie. I should know how to do this. I just don't code every day.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux