}else{if(isset($_SESSION['user'])) { $res = mysqli_query($con,"SELECT contest.contest_id,co.contest_id from contest\n RIGHT JOIN (select contest_id from contest_status where user_id='". $_SESSION['user'] ."' and leave_time is NULL) as cs on (contest.contest_id=cs.contest_i...