I have a code on a page, where I list a couple of movie clips.
When I check a checkbox I can delete the movie in that specific folder, but the movie listed in mySql is still connected.
So I need to remove the same movie from my table as well, not only from the folder. But I just can't make it work.
Can anyone see what the problem might be in this little part?
I've made this in Dreamweaver.PHP Code:if(isset($_POST['MM_submit'])) {
$imgdir=$row_rs_director['director_id'];
foreach($_POST['delete'] as $del) {
$sql = "DELETE FROM of_films WHERE video='$del'";
$result = mysql_query($sql) or die(mysql_error());
unlink($imgdir.$del); # deletes the file





Bookmarks