Hello Jason Thank you for the replay the point is that there are more than one delete button, both open in different modal boxes
The first one:
<button type="button" value="Delete" class="btn btn-danger" id="DeleteConfirm" name="DeleteConfirm" data-original-title="Delete" data-toggle="modal" data-target="#AllDelete" ><i class="fa fa-trash-o"></i> Delete</button>
Calls
<input type="submit" value="Delete" class="btn btn-danger tip" id="Delete" name="Delete" data-original-title="ARE YOU SURE" />
The second one is the one you pointed
The thing is that the first one deletes the main category and all articles related with it
the one you pointed deletes a single article but keeps the category
That is why you find at the end of the code 2 different delete buttons for triggering propose
<input type="submit" value="Delete" class="btn btn-danger tip" id="Delete" name="Delete" data-original-title="ARE YOU SURE" />
<input type="submit" value="Delete" class="btn btn-danger tip" id="DeleteL" name="DeleteL" data-original-title="ARE YOU SURE" />
If i take out
<?php
$WA_DeleteFileResult2 = false;
if(isset($_POST["Delete"]) || isset($_POST["Delete_x"])){
$WA_DeleteFileResult2 = WA_FileAssist_DeleteFile("../images/slides/", "".((isset($_POST["SLBg"]))?$_POST["SLBg"]:"") ."");
}?>
My first delete button wont delete the complete category picture in other words, also i notice that if it has a picture it will only show this msg
Warning: Cannot modify header information - headers already sent by (output started at /home/dd/public_html/webassist/file_manipulation/helperphp.php:763) in /home/dd/public_html/admin/slides_detail.php on line 133
Warning: unlink(/home/dd/public_html/images/slides): Is a directory in /home/dd/public_html/webassist/file_manipulation/helperphp.php on line 763