Advertisement
cdsatrian

odbc table

Jun 19th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.85 KB | None | 0 0
  1. <style type="text/css">
  2. <!--
  3. .style10 {
  4. font-family: Tahoma;
  5. font-size: 12px;
  6. }
  7. .style11 {
  8. font-family: Tahoma;
  9. font-size: 20px;
  10. color: #009999;
  11. }
  12. -->
  13. </style>
  14. <div align="center">
  15. <h1> FORM TAMPIL DATA USER </h1>
  16. </div>
  17. <table width="445" border="0" cellspacing="3" cellpadding="3" align="center" class="style10">
  18. <tr bgcolor="lightgreen">
  19. <td width="129"><div align="center">ID</div></td>
  20. <td width="129"><div align="center">User Name</div></td>
  21. <td width="168"><div align="center">Password </div></td>
  22. <td width="168"><div align="center">email </div></td>
  23. <td width="168"><div align="center">level </div></td>
  24. <td width="46"><div align="center">Edit</div></td>
  25. <td width="63"><div align="center">Delete</div></td>
  26. </tr>
  27. <?php
  28. $conn = odbc_connect("indra","pwb","05251") or die("Nggak bisa koneksi");
  29. $laksanakan = "SELECT * FROM account";
  30. $dt = odbc_exec( $conn, $laksanakan );
  31. while ($data = odbc_fetch_array($dt) ){
  32. ?>
  33. <tr bgcolor="#BFDFFF">
  34. <td><div align="center"><?php echo isset($data["iduser"]) ? $data["iduser"]:'';?></div></td>
  35. <td><div align="center"><?php echo isset($data["username"]) ? $data["username"]:'';?></div></td>
  36. <td><div align="center"><?php echo isset($data["password"]) ? $data["password"]:'';?></div></td>
  37. <td><div align="center"><?php echo isset($data["email"]) ? $data["email"]:'';?></div></td>
  38. <td><div align="center"><?php echo isset($data["levele"]) ? $data["levele"]:'';?></div></td>
  39. <td width="168"><div align="center"><a href="edit.php?iduser&amp;iduser=<?=$data['iduser']?>&amp;hal=<?=$pages?>" class="style10"><img src="images/85.png" width="26" height="26" /></a></div></td>
  40. <td width="46"><div align="center"><a href="hapus.php?actioninfo=delete&amp;iduser=<?=$data['iduser']?>&amp;hal=<?=$pages?>" class="style10"><img src="images/104.png" width="26" height="26" /></a></div></td>
  41. </tr>
  42. <?php } ?>
  43. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement