Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.89 KB | None | 0 0
  1. <?php      
  2.  
  3. require "conexao.php";
  4.        
  5.     if(isset($_GET['descricao_turma'])
  6.     {
  7.  
  8.         $descricao_turma = $_GET['descricoes'];
  9.         $result = mysql_query("select * from turma where codturma= $descricao_turma");
  10.  
  11.          while($row = mysql_fetch_array($result) )
  12.      {
  13.             echo "<option value='".$row['CODTURMA']."'>".$row['DESCRICAO']."</option>";
  14.  
  15.          }
  16.  
  17.      }
  18.  
  19.     if(isset($_GET['series'])
  20.     {
  21.            $serie = $_GET['series'];  
  22.            $result = mysql_query("SELECT serie.*, turma.*
  23.                               from turma
  24.                               join serie on serie.codserie = turma.codserie
  25.                             where turma.codserie=$serie " );
  26.           while($row = mysql_fetch_array($result) )
  27.       {
  28.             echo "<option value='".$row['CODSERIE']."'>".$row['DESCRICAO_SERIE']."</option>";
  29.  
  30.           }
  31.      
  32.      }
  33.  
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement