"); if ($action == "trash") { $query = "DELETE from clamav_dirs WHERE id=".$id; $result = mysql_query($query); } if ($action == "croncreate") { // Recuperation des donnees dans la base SQL $query = "SELECT * from clamav_dirs "; $result = mysql_query($query); // while ($r=mysql_fetch_array($result)) { $id = $r["id"]; $frequency="frequency".$id; $remove="remove".$id; if (isset ($remove)) { $remove = "1"; } else { $remove = "0"; } $update_query = "UPDATE clamav_dirs SET frequency='$frequency',remove='$remove' WHERE id='$id'"; mysql_query($update_query); } } if ($action == "diradd") { $query="INSERT into clamav_dirs (directory,frequency,remove) VALUES ('".$directory."','weekly','0')"; mysql_query($query); } //the form echo '