Forum Moderators: coopster
This is what I got and it works fine:
if (isset($_POST['music'])) {
foreach ($_POST['music'] as $music) {
$sql = "INSERT INTO table VALUES
('$user', '$music')";
$result = mysql_query($sql) or die (mysql_error());
}
I wonder how can a user for instance insert new values (check different checkboxes), so that the old values with his name are deleted and new ones inserted into database the same way I wrote above!
Thank you!