$newsef) { if($newsef=='bio.php') { $typeno = $count+1; $idno = $count + 2; $pgno = $count + 3; $type=strtoupper(mysql_real_escape_string($sef[$typeno])); $id=strtoupper(mysql_real_escape_string($sef[$idno])); $pg=mysql_real_escape_string($sef[$pgno]); } $count = $count + 1; } } else { $type=strtoupper(mysql_real_escape_string($sef[1])); $id=strtoupper(mysql_real_escape_string($sef[2])); $pg=mysql_real_escape_string($sef[3]); } if (($id == '') && ($segmentid =='')) { echo "Invalid selection"; } else { ?>