<?php include "layouts/menu.php"; ?>
   <?php $scode=$_REQUEST['scode'];
   $mfin=$_REQUEST['mfin'];?>  
        <div class="right_col" role="main">
          <!-- top tiles -->
  <?php        		$qry=mysqli_query($conn, "select * from customer where code='$scode'");
																
                						
									$n=mysqli_num_rows($qry);
        		$row=mysqli_fetch_array($qry);
				 $mfin222 = $row['inter']; $ff = NULL;
								///	if(($mfin222 == 'All Company') || ($mfin222 == NULL)) {  }
								//	else { $mfin = $mfin222; }
								if($mfin222 == NULL) { $mfin222 = 'All Company';}
							
			
		//	session_destroy();
				session_start();
							//	$_SESSION['uname']=$row['mail'];
					                                    //    $_SESSION['pwd']=$row['pwd'];
										$_SESSION['code']=$row['code'];
										$_SESSION['mfin']=$mfin; $_SESSION['mfin222']=$mfin222;
										$_SESSION['name']=$row['name'];
										$_SESSION['postt']=$row['desig'];
																		$_SESSION['id']=11;
																		
																		
$_SESSION['username']="admin";
$_SESSION['usertype']="adminn"; 
		  header("location:index2.php");
		  ?>
		  
		  </div>     </div>
                <!-- end of weather widget -->
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->

        <!-- footer content -->
   
	   <?php include "layouts/footer.php"; ?>
  </body>
</html>
