session_start(); ob_start();
include "include/connect.php";
include "include/settings.php";
if($_REQUEST['fiedname']=='prisonname'){
$arr=explode(",",$_SESSION['prisonname']);
$arr1=explode(",",$_SESSION['prisonnumber']);
$value=$_REQUEST['value'];
for($a=0;$a {
if($a!=$value){
$prisonnamenew.=$arr[$a].",";
}else{ }
}
for($a=0;$a {
if($a!=$value){
$prisonnumbernew.=$arr1[$a].",";
}else{ }
}
//Avoid semicolon
$prisonnamenewarray=explode(",",$prisonnamenew);
for($n=0;$n {
if($prisonnamenewarray[$n]!=''){
if((sizeof($prisonnamenewarray)-2)!=$n){
$prisonnamenew1.=$prisonnamenewarray[$n].","; }else{ $prisonnamenew1.=$prisonnamenewarray[$n]; }
}
}
$prisonnumbernewarray=explode(",",$prisonnumbernew);
for($n=0;$n {
if($prisonnumbernewarray[$n]!=''){
if((sizeof($prisonnumbernewarray)-2)!=$n){
...