<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
    body{ background:url(images/b1.jpg) no-repeat center top scroll;
background-size: 100% auto;
padding-bottom: 50%;}
    </style>

  </head>
  <body>
    <div class="container">
    	<div class="row">
    		<div class="col-md-4">
            <?php 
//$hh=$user->checkscope();
$hh = $user->checkwaitlist();
//if($i==1){
if ($hh == false) {
    $findfirstid = $user->findfristidfromtbl();
    //$cid=$findfirstid['id'];
    foreach ($findfirstid as $fw) {
        $cname = $fw['user_name'];
        $did = $fw['id'];
        echo $cname;
        echo $did;
    }
    $insertnwait = $user->insertfinalwait($cname);
    //header('Location:chat.php?cid=<?php echo $cid
    $deletefr = $user->deletefromwaitlist($did);
}
?>