hjkhhrtertererrrrrerrtertertertertertertert
bnmbnerterterterterterdfgdfgdfgdfgdfgdfgdfgdfgdfg
/
home4
/
digil8bw
/
asciitechsolution.com
/
admin
/
Upload FileeE
HOME
<?php ob_start(); include("../configuration/function-include.php"); //Single Delete................... if(!empty($_REQUEST['DelID'])){ $sql_del = "Delete from portfolio where id = '".$_REQUEST['DelID']."'"; $query_del = mysqli_query($conn, $sql_del); $_SESSION['msg']="Selected record deleted successfully."; header("location:$_SERVER[HTTP_REFERER]"); exit(); } if(count($_POST['ids'])>0){ $ids = $_POST['ids']; $ids = implode(",",$ids); //Multi Delete....................... if ($_POST['Submit']=='Delete'){ $sql = "select * from portfolio where id in (".$ids.") "; $query = mysqli_query($conn, $sql); while($res = mysqli_fetch_array($query)) { $sql = "delete from portfolio where id ='".$res['id']."'"; mysqli_query($conn, $sql); $_SESSION['msg']="Selected record deleted successfully"; } } //Multi Active........................ if ($_POST['Submit']=='Active') { $sql='update portfolio set status="1" where id in ('.$ids.')'; mysqli_query($conn, $sql); $_SESSION['msg']="Selected record activated successfully"; } //Multi Inactive..................... if ( $_POST['Submit']=='Inactive') { $sql='update portfolio set status="0" where id in ('.$ids.')'; mysqli_query($conn, $sql); $_SESSION['msg']="Selected record inactivated successfully"; } header("location:$_SERVER[HTTP_REFERER]"); exit(); } else { $_SESSION['msg']="Please check the check boxes! "; header("location:$_SERVER[HTTP_REFERER]"); exit(); } ?>