Advertisement
Guest User

Untitled

a guest
Dec 15th, 2016
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. <?php
  2. $host = "localhost";
  3. $username = "";
  4. $password = "";
  5. $objConnect = mysql_connect($host,$username,$password);
  6.  
  7. $objDB = mysql_select_db("");
  8.  
  9. $strSQL = "SELECT * FROM dj";
  10. $objQuery = mysql_query($strSQL) or die (mysql_error());
  11.  
  12. ?>
  13.  
  14. <?php
  15. $id = $_GET['id'];
  16. ?>
  17. <br><html>
  18. <head>
  19. <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" >
  20. <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
  21. <link href="https://fonts.googleapis.com/css?family=Kanit" rel="stylesheet">
  22. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.js"></script>
  23. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  24. </head>
  25.  
  26. <body>
  27. <style>
  28. body {
  29. margin: 0;
  30. font-family: 'Kanit', sans-serif;
  31. font-weight: normal;
  32. background-color: #e2e2e2;
  33. }
  34.  
  35. .profile {
  36. float: left;
  37. margin: 5px;
  38. width: 800px;
  39. height: 700px;
  40. }
  41.  
  42. .imgprofile img {
  43. border: 10px solid #fff;
  44. position: absolute;
  45. width: 180px;
  46. height: 180px;
  47. -moz-border-radius: 50%;
  48. -webkit-border-radius: 50%;
  49. border-radius: 50%;
  50. background-color: #fff;
  51. }
  52.  
  53. .message {
  54. margin: 30px 153px;
  55. width: 600px;
  56. padding: 5px;
  57. border: 3px solid #fff;
  58. border-radius: 4px;
  59. background-color: #fff;
  60. height: 120px;
  61. position: absolute;
  62. }
  63.  
  64. .message p {
  65. color: #222;
  66. margin: 0 23px;
  67. font-size: 21px;
  68. line-height: 21px;
  69. }
  70.  
  71. #slider {
  72. position: absolute;
  73. margin: 190px 1px;
  74. background-color: #fff;
  75. width: 751px;
  76. height: auto;
  77. color: #222;
  78. border: 10px solid #fff;
  79. border-radius: 4px;
  80. }
  81.  
  82. .btn {
  83. font-family: thaisanslite;
  84. }
  85.  
  86. .btn:hover {
  87. transition: 0.2s;
  88. opacity: 0.8;
  89. outline: none;
  90. }
  91.  
  92. .right_top {
  93. position: absolute;
  94. top: 0;
  95. bottom: 0;
  96. right: 0;
  97. float: right;
  98. margin: 9px;
  99. }
  100.  
  101. .right_bottom {
  102. position: absolute;
  103. /* top: 0; */
  104. bottom: 0;
  105. right: 0;
  106. float: right;
  107. margin: 9px;
  108. }
  109.  
  110. #facebook {
  111. font-size: 20px;
  112. color: #fff;
  113. background-color: #03a9f4;
  114. }
  115.  
  116. #instagram {
  117. font-size: 20px;
  118. color: #fff;
  119. background-color: #d69560;
  120. }
  121. </style>
  122. <?php
  123. while($objResult = mysql_fetch_array($objQuery))
  124. {
  125. ?>
  126. <div class="profile">
  127. <div id="อยู่ด้วยกันนะ" class="main">
  128. <div class="message">
  129. <p style="font-size: 35px;font-weight: normal;padding: 9px 0;"> </p>
  130. <p>ชื่อเล่น : <?php echo $objResult["Name"];?> </p>
  131. <p>อายุ : </p>
  132. <p>ข้อความทักทาย : ❤ </p>
  133. <div class="right_top">
  134. <button id="facebook" class="btn btn"><i class="fa fa-facebook-official" aria-hidden="true"></i> Facebook</button>
  135. <button id="instagram" class="btn btn"><i class="fa fa-instagram" aria-hidden="true"></i> Instagram</button>
  136. </div>
  137. </div>
  138. </div>
  139. <?php
  140. }
  141. ?>
  142. <div id="slider" style="border-radius: 4px;/*width: 100%;height: 100%;*/">
  143. <div id="slide" class="carousel slide" data-ride="carousel">
  144. </br>
  145. <ol class="carousel-indicators">
  146. <li data-target="#slide" data-slide-to="0" class="active"></li>
  147. <li data-target="#slide" data-slide-to="1"></li>
  148. <li data-target="#slide" data-slide-to="2"></li>
  149. </ol>
  150. <div class="carousel-inner" role="listbox">
  151. <div class="item active"> <img class="img-reponsive" src="http://talktalk94.com/member/uploads/dj_profile/dj_<?php echo $id;?>_profile_1.jpg">
  152. </div>
  153. <div class="item"> <img class="img-reponsive" src="http://talktalk94.com/member/uploads/dj_profile/dj_<?php echo $id;?>_profile_2.jpg">
  154. </div>
  155. <div class="item"> <img class="img-reponsive" src="http://talktalk94.com/member/uploads/dj_profile/dj_<?php echo $id;?>_profile_3.jpg">
  156. </div>
  157.  
  158. </div>
  159. </br>
  160. <div class="divider">&nbsp;</div>
  161. </div>
  162. </div>
  163. <div class="imgprofile"><img src="http://talktalk94.com/member/uploads/dj_profile/dj_<?php echo $id;?>_profile_1.jpg"></img>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. </body>
  169.  
  170. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement