Possible Duplicate:
store multiple checkbox values to database using php and mysql
How to store the checkbox values to single field by using the set column type using php and mysql. Is it possible?
My Code:
<?php
$genre = serialize($_POST['genre']);
$query = "INSERT INTO myset(genre) values('" . $genre . "')";
mysql_query($query) or die(mysql_error());
?>
Its not working.
HTML
PHP
After this, you will find value ‘1,2’ in your (single) genre column.