Advertisement
Guest User

Untitled

a guest
Apr 20th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. <?php
  2. $user="root";
  3. $pass="xxxx";
  4. $db='neediehave';
  5. $db = new mysqli('localhost', $user, $pass,$db) or die("unable to connect");
  6. $sql="SELECT * FROM music UNION SELECT * FROM finance";
  7. $result=mysqli_query($db,$sql);
  8. ?>
  9.  
  10. <div class="front-page">
  11. <div class="container">
  12. <div class="front-heading text-center">
  13. <h1> Do you want to learn New Skill?</h1>
  14. <h3> Learn new skills by searching for people having it or teach someone your skills! </h3>
  15. </div>
  16. <div class="row">
  17. <div class="col-sm-8 ">
  18. <div class="recent-posts text-center">
  19. <h2>Recent Posts</h2>
  20. <table class="table table-striped table-hover">
  21. <thead>
  22. <tr>
  23. <th>topic</th>
  24. <th>information</th>
  25. <th>Date</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. <tr class="text-left">
  30. <?php
  31. while($music=mysqli_fetch_array($result))
  32. {
  33. echo "<tr>";
  34. echo "<td> ".$music['topic']."</td>";
  35. echo "<td> ".$music['information']."</td>";
  36. echo "<td> ".$music['date_time']."</td>";
  37. echo "</tr>";
  38.  
  39.  
  40. }
  41.  
  42. ?>
  43. </tr>
  44. </tbody>
  45. </table>
  46. </div>
  47. </div>
  48. <div class="col-sm-4">
  49. <login-form></login-form>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement