Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!--
- To change this license header, choose License Headers in Project Properties.
- To change this template file, choose Tools | Templates
- and open the template in the editor.
- -->
- <html>
- <head>
- <meta charset="UTF-8">
- <title></title>
- </head>
- <body>
- <?php
- require 'konekcija.php';
- echo '<table border="2">';
- echo '<tr><th>'.' '.'<th>'.'Dvorana'.'<th>'.'Kapacitet'.'<tr>';
- $query="select oznDvorana, kapacitet
- from dvorana";
- $result= mysqli_query($link, $query);
- $x=0;
- while($row= mysqli_fetch_assoc($result))
- {
- $x=$x+1;
- $dvorana='<a href="rezervacija.php?dvorana='.$row['oznDvorana']
- .'">'.$row['oznDvorana'].'</a>';
- echo '<tr><td>'.$x.'<td>'.
- $dvorana.'<td>'.
- $row['kapacitet'].'<tr>';
- }
- echo '</table>';
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement