Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('konf.php');
- $query = mysql_query("SELECT ID, Username, Lastname FROM korisnici") or die (mysql_error());
- $return = '';
- while($ovo = mysql_fetch_assoc($query)){
- $return .= '<a href="korisnik.php?id='.$ovo['ID'].'">Username: '.$ovo['Username'].'</a><br />';
- }
- echo $return;
- ?>
- -----
- <h1>Usernameovi</h1>
- <table class="data">
- <thead>
- <tr>
- <th scope="col">#</th>
- <th scope="col">Ime</th>
- <th scope="col">Prezime</th>
- </tr>
- </thead>
- <tfoot>
- <tr>
- <th colspan="2">Total</th>
- <td scope="row"></td>
- </tr>
- </tfoot>
- <tbody>
- <td>... </td>
- <td> <?php echo $ovo["Username"]; ?> </td>
- <td> <?php echo $ovo["Lastname"]; ?> </td>
- </tr>
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment