NUMER GRUPY(L11)
dane z grupy L11
NUMER GRUPY(L12)
dane z grupy L12
.
.
.
nie za bardzo wiem jak to zrobic, generalnie jak w kodzie zamienic
ażeby była jakaś zmienna, ale nie chce mi nic dzialać i ażeby to w pętli było.
$numer='L11';
Z góry dzięki za pomoc
<?php require_once("includes/session.php"); ?> <?php require_once("includes/connection.php"); ?> <?php require_once("includes/functions.php"); ?> <?php include("includes/header.php"); ?> <table id="structure"> <tr> <td id="navigation"> <td bgcolor="#993300" width="140" valign="top" > <center><a href="staff.php" class="navigation"><?php echo iconv('CP1250', 'utf-8', "MENU GŁÓWNE");?></a> <a href="logout.php"class="navigation">WYLOGUJ</a></center> </td> <?php $numer='L11'; $result=mysql_query("select * from student s,grupa g where numer_g=numer AND symbol_g=symbol AND numer='$numer'", $connection); // $wynik=$result && $result1; if(!$result){ } ?> </td> <td id="page"> <form action="lista_student.php" method="post"> <br /><p align="left" class="menu"><?php echo iconv('CP1250', 'utf-8', "LISTA studentow");?></p> <br /> <dl id="menu1"> <dt> <?php if($result1==true){ { }} ?> </dt> <dd style="display: none; "> <?php $txt= '<th style="width: 75px;border-left: 5px solid black">ID studenta</th>' .'<th style="width: 150px;border-left: 5px solid black">Imie</th>' .'<th style="width: 180px;border-left: 5px solid black">Nazwisko</th>' .'<th style="width: 200px;border-left: 5px solid black">numer_indexu</th>' .'<th style="width: 200px;border-left: 5px solid black">Symbol grupy</th>' .'<th style="width: 200px;border-left: 5px solid black">Numer grupy</th>' .'<th style="width: 50px;border-left: 5px solid black">edycja student</th>' ; echo '<table border="5"><th style="width: 75px;border-left: 5px solid black"bgcolor="#D1763F">' .$row["student.id"].'</td>'; .'<td style="width: 180px;border-left: 5px solid black">'.$row["nazwisko"] .'<td style="width: 200px;border-left: 5px solid black">'.$row["numer_indexu"] .'<td style="width: 200px;border-left: 5px solid black">'.$row["symbol_g"] .'<td style="width: 200px;border-left: 5px solid black">'.$row["numer_g"] .'<td style="width: 200px;border-left: 5px solid black">'.'<img src="images/b_edit.png">'.'<a href="edit_student.php">Edit' .'</table>'; } ?> </dd> </form> </td> </tr> </table> <script type="text/javascript"> // <![CDATA[ new Menu('menu1','',false,false,10,0); // ]]> </script> <?php include("includes/footer.php"); ?>
czy naprawdę nikt mi nie pomoże...
