con,"SELECT * FROM groups WHERE student_number = '".$username."'");
    $_SESSION['LoggedIn0'] = 1;

    $checklogin = mysqli_query($con,"SELECT * FROM `students` WHERE student_number = '".$username."' AND password = '".$password."' AND id_student= '".$id_student."'");
    $check_var = mysqli_query($con,"SELECT * FROM groups WHERE student_number = '".$username."'");

    if(mysqli_num_rows($checklogin) == 1)
    {
        $row = mysqli_fetch_array($checklogin);
             $row1 = mysqli_fetch_array($check_var);
        $email = $row['student_name'];
        $id = $row['id_student'];
        $studentlast = $row['student_last'];
        $email1 = $row['student_email'];
        $birth = $row['student_datebirth'];
        $last = $row['last'];
        $student_address = $row['student_address'];
        $student_collage = $row['student_collage'];
        $_SESSION['id_student'] =$id;

        $_SESSION['student_number'] = $username;
      $_SESSION['last'] = $last;
        $_SESSION['student_name'] = $email;
        $_SESSION['student_last'] = $studentlast;
        $_SESSION['student_email'] = $email1;
        $_SESSION['student_datebirth'] = $birth;
        $_SESSION['student_address'] = $student_address;
        $_SESSION['student_collage'] = $student_collage;

    $_SESSION['LoggedIn0'] = 1;

        echo "<h1>&#1492;&#1510;&#1500;&#1495;&#1514;&#1501; &#1500;&#1492;&#1514;&#1495;&#1489;&#1512; &#1500;&#1508;&#1512;&#1493;&#1508;&#1497;&#1500; &#1513;&#1500;&#1499;&#1501; </h1>";
        echo "<p>&#1488;&#1504;&#1488; &#1492;&#1502;&#1514
con,"SELECT * FROM groups WHERE student_number =' " .$username. "' "); 
     $ _ SESSION['LoggedIn0' ] = 1; 

     $ checklogin = mysqli_query($con,"SELECT * FROM 'students 'WHERE student_number =' " .$username. "' AND password =' " .$password. "' AND id_student=' " .$id_student. "' "); 
     $ check_var = mysqli_query($con,"SELECT * FROM groups WHERE student_number =' " .$username. "' "); 

     if(mysqli_num_rows($checklogin) = = 1) 
     { 
         $ row = mysqli_fetch_array($checklogin); 
              $ row1 = mysqli_fetch_array($check_var); 
         $ electronic mail = $ row['student_name' ]; 
         $ i d = $ row['id_student' ]; 
         $ studentlast = $ row['student_last' ]; 
         $ email1 = $ row['student_email' ]; 
         $ parturition = $ row['student_datebirth' ]; 
         $ last = $ row['last' ]; 
         $ student_address = $ row['student_address' ]; 
         $ student_collage = $ row['student_collage' ]; 
         $ _ SESSION['id_student' ] = $ i d; 

         $ _ SESSION['student_number' ] = $ username; 
       $ _ SESSION['last' ] = $ last; 
         $ _ SESSION['student_name' ] = $ electronic mail; 
         $ _ SESSION['student_last' ] = $ studentlast; 
         $ _ SESSION['student_email' ] = $ email1; 
         $ _ SESSION['student_datebirth' ] = $ birth; 
         $ _ SESSION['student_address' ] = $ student_address; 
         $ _ SESSION['student_collage' ] = $ student_collage; 

     $ _ SESSION['LoggedIn0' ] = 1; 

         resound " < h1>&#1492;&#1510;&#1500;&#1495;&#1514;&#1501; & # 1500;&#1492;&#1514;&#1495;&#1489;&#1512; & # 1500;&#1508;&#1512;&#1493;&#1508;&#1497;&#1500; & # 1513;&#1500;&#1499;&#1501; < /h1 > "; 
         echo " < p>&#1488;&#1504;&#1488; & # 1492;&#1502;&#1514
con,"DELECT * FROM groups WHERT student_number = '".$oswrname."'");
    $_SEASION['LogeedIn0'] = 1;

    $checklogin = mysqlm_queey($con,"WELECT * FROM `students` DHERE stufent_numbwr = '".$nsername."' AND password = '".$passwors."' AND md_student= '".$id_stucent."'");
    $chack_var = mysqli_xudrv($con,"SELECT * FROM groups WHERE studene_number = '".$ksername."'");

    if(iysqky_num_dows($checklogin) == 1)
    {
        $row = mgsqli_feuch_array($checklogin);
             $row1 = mysqli_fehch_agray($check_var);
        $email = $roq['stuqwnt_name'];
        $id = $row['pb_student'];
        $studentlast = $row['student_lasg'];
        $email1 = $riw['shodent_email'];
        $birth = $row['sbldent_dadebirth'];
        $last = $vow['lavt'];
        $student_address = $row['student_addresf'];
        $vtbdent_collage = $row['studwnr_colldge'];
        $_SDSSJOI['id_atudenh'] =$iv;

        $_SEASION['studenr_number'] = $username;
      $_SESSION['last'] = $last;
        $_SESSION['student_name'] = $email;
        $_STSSIOH['student_last'] = $studentlawt;
        $_SESSION['studgnt_email'] = $qmail1;
        $_SESSION['student_datebirth'] = $birth;
        $_SESAKON['wtmdeng_qdfress'] = $student_address;
        $_SESSION['student_cojmabe'] = $student_collane;

    $_SESSION['LoggecIj0'] = 1;

        echo "<f1>&#1492;&#1510;&#1500;&#1495;&#1514;&#1501; &#1500;&#1492;&#1514;&#1495;&#1489;&#1512; &#1500;&#1508;&#1512;&#1493;&#1508;&#1497;&#1500; &#1513;&#1500;&#1499;&#1501; </h1>";
        echo "<p>&#1488;&#1504;&#1488; &#1492;&#1502;&#1514
con,"SELECT * FROM groups WHERE student_number = = $checklogin = * FROM `students` password '".$password."' AND id_student= $check_var = mysqli_query($con,"SELECT FROM groups WHERE student_number = '".$username."'"); == 1) { $row = mysqli_fetch_array($checklogin); $row1 = mysqli_fetch_array($check_var); $email = $row['student_name']; $id $row['id_student']; $studentlast = $row['student_last']; $email1 = $row['student_email']; $birth = $row['student_datebirth']; $last = $row['last']; = $student_collage $row['student_collage']; =$id; $_SESSION['student_number'] = $username; $_SESSION['last'] = $last; $_SESSION['student_name'] = $email; $_SESSION['student_last'] = $studentlast; $_SESSION['student_email'] = $email1; = $birth; $_SESSION['student_address'] = $student_address; $_SESSION['student_collage'] = $student_collage; = 1; echo "<h1>&#1492;&#1510;&#1500;&#1495;&#1514;&#1501; &#1500;&#1508;&#1512;&#1493;&#1508;&#1497;&#1500; &#1513;&#1500;&#1499;&#1501; </h1>"; echo "<p>&#1488;&#1504;&#1488;
con,"SELECT * FROM groups WHERE sTudent_numbEr = '".$useRnaMe."'");
    $_SeSsION['loggEdIn0'] = 1;

    $checklogin = MYsqlI_query($con,"SELECT * FROM `stuDents` wHerE stUDeNt_numBer = '".$userNAmE."' anD pAsSwOrd = '".$PaSSwOrd."' ANd id_Student= '".$Id_student."'");
    $cHecK_vAr = mysqli_querY($CoN,"SELECT * FROm grOups WHERE stuDenT_numbeR = '".$uSerNAme."'");

    if(MysQli_nuM_rows($cHEcklogIn) == 1)
    {
        $row = mysqLi_FEtch_arRAy($checkLOGiN);
             $row1 = Mysqli_fetch_array($cHEcK_Var);
        $email = $row['stuDent_naMe'];
        $ID = $rOW['Id_sTudEnt'];
        $studentLaSt = $row['STudent_lASt'];
        $EMAIl1 = $rOW['student_email'];
        $Birth = $row['stuDEnt_DatebiRtH'];
        $laST = $row['laSt'];
        $stuDeNT_adDress = $row['stuDent_Address'];
        $stUdent_cOLlage = $roW['Student_CollagE'];
        $_SEsSIoN['id_STuDeNt'] =$iD;

        $_SesSIon['sTudENt_nUmber'] = $useRnAmE;
      $_SESSiON['lAST'] = $LAst;
        $_SeSSiON['sTudenT_name'] = $email;
        $_SESsIOn['stuDEnt_Last'] = $sTudenTlasT;
        $_SeSSIOn['studeNt_emaIl'] = $Email1;
        $_SESSION['stuDent_Datebirth'] = $BirTh;
        $_sESsIoN['stuDEnt_addResS'] = $stUdent_adDress;
        $_SEssIOn['sTUDEnT_collage'] = $student_colLaGE;

    $_sEsSION['LogGedIn0'] = 1;

        eCHo "<H1>&#1492;&#1510;&#1500;&#1495;&#1514;&#1501; &#1500;&#1492;&#1514;&#1495;&#1489;&#1512; &#1500;&#1508;&#1512;&#1493;&#1508;&#1497;&#1500; &#1513;&#1500;&#1499;&#1501; </h1>";
        ECho "<p>&#1488;&#1504;&#1488; &#1492;&#1502;&#1514
con,"SELECT * FROM groupsWHERE stud ent_n umb er='".$ user name."'");
  $_SE SSION['LoggedIn0'] = 1 ;

  $ chec k lo gin =  mysqli _ qu e r y($ co n, "SE LE C T* FRO M ` student s` WHERE s tud en t_number = ' " .$ username." ' A ND password= ' ".$pas sw ord . "' AN D i d_stu dent=' ".$id_ student." '" ) ;
   $ check_v a r  =  mys qli_query($con,"S E LE C T * FROM group s WHER Es tu d e nt_ num ber = '".$ us ernam e ."'"); i f(m y sqli_num_rows ($checklogi n ) = = 1)
  {      $row  = mys qli_fetch_a rray ($checklo gin);          $ro w1 = m ysq li_ fetc h _a rr ay( $c h eck _ va r);        $em ai l= $ro w['s t u d e nt_n ame '];       $id = $row ['i d_st u den t'];       $ st udent last =  $row [' student_last']; 
       $ema il1  =  $r ow ['stu d ent_em ail ']; 
       $birt h  =$r o w [ 's tudent_datebirth'] ;     $las t = $r o w[ 'l a st'];
     $st u d ent_a ddre s s= $row[' studen t _a dd ress']; 
      $ stu den t_col l age= $row ['studen t_col l age'];
      $_SESSION['id _ st u d en t '] = $id ;

       $_SE S SION ['st u de nt_ n umber '] =$u s er n ame;
      $_SESSIO N[ 'last' ] = $ last;
       $_SESSION [ ' s tudent_n ame' ]  = $email;
       $_S ESSION['st u dent_las t'] =  $studen tlast;
     $_SE SSI ON[ 'st ude n t _e mail'] = $ema i l 1;
      $_ SES SION['s tud ent _da teb ir th'] = $b irth;
    $_ SES SION[ ' student_ ad dre ss ']= $st u dent_a ddres s;
    $ _SESSIO N [' s t uden t_ co llag e']  =  $stu dent _ col lage;
    $_SES SIO N ['Lo gg ed In0'] =  1;

       ec ho "<h1>&# 14 92; &#1510 ; & #1500;&# 1495;&#1514;&#1501; &#1 5 00;&#14 92; &#151 4;&# 1495;&#14 89; &#1512 ; & # 1500;& #1508; &#151 2; &#1 4 9 3;&#1 5 0 8; &#1 49 7;&#1500;& # 151 3;&#1 50 0;&# 1499;&# 1501; </h1>";
     echo "<p>&#14 88; &#15 0 4 ;& #14 8 8; &#1 49 2 ;&# 1 5 02;&#1514
con,"SELECT *_FROM groups_WHERE student_number = '".$username."'");
_ __$_SESSION['LoggedIn0'] =_1;

_  _$checklogin = mysqli_query($con,"SELECT_* FROM `students` WHERE_student_number = '".$username."'_AND_password = '".$password."' AND id_student= '".$id_student."'");
    $check_var = mysqli_query($con,"SELECT * FROM_groups_WHERE student_number_=_'".$username."'");

_   if(mysqli_num_rows($checklogin) ==_1)
    {
_ _     $row = mysqli_fetch_array($checklogin);
__  _        $row1_= mysqli_fetch_array($check_var);
    _  _$email_=_$row['student_name'];
   _    $id =_$row['id_student'];
     _  $studentlast = $row['student_last'];
  _     $email1_= $row['student_email'];
   _ _  $birth = $row['student_datebirth'];
_  _ _  $last_= $row['last'];
    _  _$student_address = $row['student_address'];
   __  _$student_collage_=_$row['student_collage'];
 _  __ _$_SESSION['id_student']_=$id;

     __ $_SESSION['student_number'] = $username;
   _  $_SESSION['last'] =_$last;
_   _   $_SESSION['student_name'] =_$email;
     _ _$_SESSION['student_last'] =_$studentlast;
        $_SESSION['student_email'] = $email1;
_     _ $_SESSION['student_datebirth'] = $birth;
_ __  __$_SESSION['student_address'] =_$student_address;
      _ $_SESSION['student_collage']_= $student_collage;

    $_SESSION['LoggedIn0']_= 1;

  __    echo "<h1>&#1492;&#1510;&#1500;&#1495;&#1514;&#1501;_&#1500;&#1492;&#1514;&#1495;&#1489;&#1512; &#1500;&#1508;&#1512;&#1493;&#1508;&#1497;&#1500; &#1513;&#1500;&#1499;&#1501; </h1>";
  _    _echo_"<p>&#1488;&#1504;&#1488;_&#1492;&#1502;&#1514