Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.45 KB | None | 0 0
  1. <html>
  2. <body>
  3.  
  4. <h1>Freenode ##PSN Official Website<h1>
  5. <h6>Member of the Citizen Network<h6>
  6. <table align="center">
  7. <tr>
  8. <!--
  9. <td align="right">
  10. <form action="insert.php" method="post">
  11. Firstname: <input type="text" name="firstname" /><br>
  12. Lastname: <input type="text" name="lastname" /><br>
  13. Age(optional):  <input type="text" name="age" /><br>
  14. PSN-ID: <input type="text" name="psnid" /><br>
  15. Country: <input type="text" name="country" /><br>
  16. E-mail: <input type="text" name="mail" /><br>
  17. Password: <input type="password" name="pwd" /><br>
  18. Confirm: <input type="password" name="pwd" /><br>
  19. Irc nicknames: <input type="text" name="ircnick" /><br>
  20. <input type="submit" /><br>
  21. </td>
  22. -->
  23. <!-- Member list -->
  24. <td>
  25. <?php
  26. $con = mysql_connect("localhost","CitiNetwork","FAKEPASWP");
  27. if (!$con)
  28.   {
  29.   die('Could not connect: ' . mysql_error());
  30.   }
  31.  
  32. mysql_select_db("TEST_db", $con);
  33.  
  34. $result = mysql_query("SELECT * FROM Psn ORDER BY psnid");
  35.  
  36. echo "<table border='0'>
  37. <tr>
  38. <th>PSN-ID</th>
  39. <th>Country</th>
  40. <th>Irc Nick</th>
  41. </tr>";
  42.  
  43. while($row = mysql_fetch_array($result))
  44.   {
  45.   echo "<tr>";
  46.   echo "<td>" . $row['psnid'] . "</td>";
  47.  /* echo "<td>" . $row['FirstName'] . "</td>";
  48.   echo "<td>" . $row['LastName'] . "</td>"; */
  49.   echo "<td>" . $row['country'] . "</td>";
  50.   echo "<td>" . $row['ircnick'] . "</td>";
  51.   echo "</tr>";
  52.   }
  53. echo "</table>";
  54.  
  55. mysql_close($con);
  56. ?>
  57. </td>
  58. <!-- end member list-->
  59. </tr>
  60. </table>
  61. </body>
  62. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement