Classes With Friends (users.php)


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Untitled Document</title>
  6. </head>
  7.  
  8. <body>
  9.  
  10. Current Users of Classes w/ Friends on Facebook
  11. <?
  12.  
  13. include ('connect.php');
  14.  
  15. $query = "SELECT * FROM users";
  16.  
  17. $result = mysql_query($query);
  18.  
  19. while ($row = mysql_fetch_array($result))
  20. {
  21. echo "<a href='". $row['link'] ."'/>" . $row['name'] ."</a>,&nbsp". $row['gender'] . ",&nbsp" . $row['email'] . "<br>";
  22.  
  23. }
  24.  
  25. ?>
  26.  
  27.  
  28.  
  29. </body>
  30. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.