Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user ="root";
- $pass ="";
- $serer="localhost";
- $dbname="pekok";
- mysql_connect($serer,$user,$pass) or die(mysql_error());
- mysql_select_db($dbname) or die(mysql_error());
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>
- Lihat
- </title>
- </head>
- <body><center>
- <table border="1" style="border-color: blue;">
- <tr>
- <th>Username </th>
- <th>Password </th>
- </tr>
- <td>
- <?php $query=mysql_query("SELECT * FROM user");
- $hasil =mysql_query($query);
- while ($data mysql_fetch_array($hasil)) {
- $id=$data['id'];
- echo "<td> ".$data['username']."</td>";
- }
- ?>
- </td>
- </table></center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement