okay, firstly i would like to know am i able to get the value for the software_version table 'ID' from this code??
$result4 = @mysql_query("select * from software_version left join version ON software_version.version_id = version.ID left join changelog ON software_version.ID = changelog.software_id where (changelog.software_id = '" . $SW . "')");
And this i used it to delete item
if (isset($_POST['delete']) && isset($_POST['checkbox'])){
foreach ($_POST['checkbox'] as $dkey){
$deletequery = mysql_query("DELETE FROM changelog WHERE ID='".$dkey."'");
if($deletequery ){
echo "<meta http-equiv=\"refresh\" content=\"0;URL=CL_changelog.php\">";
}
}
}
the checkbox statement:
echo '<TD><input name="checkbox[]" type=checkbox value='.$table['ID'].'></td>';