Guest User

Untitled

a guest
May 26th, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <!-- T.Rex web page 1 html -->
  4.  
  5. <html>
  6.  
  7.  
  8. <head>
  9.  
  10. <!-- contains the head -->
  11.  
  12. <title> 33 Interesting T.Rex Facts </title>
  13. <meta charset="UTF-8">
  14. <meta name="description" content="33 facts about the T.Rex">
  15. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  16. <link rel="stylesheet" type="text/css" href= "style.php">
  17.  
  18. </head>
  19.  
  20. <body>
  21.  
  22. <!-- my nav bar -->
  23. <div class="topnav">
  24. <a class="active" href="">Home</a>
  25. <a href="">Change Log</a>
  26. <a href="">Email Me</a>
  27. <a href="">About Me</a>
  28.  
  29. <!-- Search engine setup in html uses php -->
  30.  
  31. <form action="search.php" method="GET">
  32. <input type='text' size='20' name='search' placeholder="Search..">
  33. <button type="submit" name="submit-search"> </button>
  34. </form>
  35. </div>
  36.  
  37. <!-- 10 facts would go here -->
  38.  
  39. <div class="pagination">
  40. <a href="http://localhost/index1.php/">&laquo;</a>
  41. <a class="active" href="http://localhost/index1.php/">1</a>
  42. <a href="http://localhost/index4.php/">2</a>
  43. <a href="http://localhost/index5.php">3</a>
  44. <a href="http://localhost/index4.php/">&raquo;</a>
  45. </div>
  46.  
  47. </body>
  48.  
  49. </html>
  50.  
  51. <?php
  52.  
  53. $server = "localhost";
  54. $username = "";
  55. $password = "";
  56. $dbname = "dinodb";
  57.  
  58. $conn = mysqli_connect($server, $username, $password, $dbname);
  59.  
  60. $button = $_GET ['submit-search'];
  61. $search = $_GET ['search'];
  62.  
  63. ?>
Add Comment
Please, Sign In to add comment