Guest User

Untitled

a guest
Mar 10th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. <?php
  2. require_once('konf.php');
  3.    
  4.     $query = mysql_query("SELECT ID, Username, Lastname FROM korisnici") or die (mysql_error());
  5.     $return = '';
  6.  
  7.     while($ovo = mysql_fetch_assoc($query)){
  8.         $return .= '<a href="korisnik.php?id='.$ovo['ID'].'">Username: '.$ovo['Username'].'</a><br />';
  9.     }
  10.  
  11.     echo $return;
  12. ?>
  13.  
  14.  
  15. -----
  16.  
  17. <h1>Usernameovi</h1>
  18. <table class="data">
  19.     <thead>
  20.         <tr>
  21.             <th scope="col">#</th>
  22.             <th scope="col">Ime</th>
  23.             <th scope="col">Prezime</th>
  24.         </tr>
  25.     </thead>   
  26.     <tfoot>
  27.         <tr>
  28.             <th colspan="2">Total</th>
  29.             <td scope="row"></td>
  30.         </tr>
  31.     </tfoot>
  32.     <tbody>
  33.  
  34.  
  35. <td>... </td>
  36. <td> <?php echo $ovo["Username"]; ?> </td>
  37. <td> <?php echo $ovo["Lastname"]; ?> </td>
  38.  
  39. </tr>
  40.  
  41.   </tbody>
  42. </table>
Advertisement
Add Comment
Please, Sign In to add comment