Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. <?php
  2. include('config.php');// connection to database
  3. ?>
  4.  
  5. <form name="" action="" method="POST">
  6. <select class="btn dropdown-toggle clearfix btn-hg btn-primary" name="school_ebook" data-toggle="dropdown" style="width: 200px;">
  7. <?php
  8. $result1=mysql_query("SELECT * FROM school GROUP BY SCHOOL_NAME");
  9.  
  10. while($row1=mysql_fetch_array($result1))
  11. {
  12. ?>
  13. <option><?php echo $row1['SCHOOL_NAME'];?></option>
  14. <?php
  15. }
  16. ?>
  17. </select>
  18.  
  19. <table class="table table-striped table-hover table-bordered datatable">
  20. <thead style="background: #a83535; color: black;">
  21. <tr>
  22. <th style="width: 50px;"></th>
  23. <th style="color: #3b3b3b;">Ebook Title</th>
  24. <th style="color: #3b3b3b;">Category</th>
  25. <th style="color: #3b3b3b;">File Name</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. <?php
  30. $result=mysql_query("SELECT * from ebooks ORDER BY EBOOK_TITLE");
  31. $count=mysql_num_rows($result);
  32. while($row=mysql_fetch_array($result))
  33. {
  34. ?>
  35. <tr>
  36. <td>
  37. <center><input type="checkbox" name="check[]" ></center>
  38. </td>
  39. <td><input type="" name="ebookname[]" value="<?php echo $row['EBOOK_TITLE'];?>"></label></td>
  40. <td><input type="" name="ebookcategory[]" value="<?php echo $row['EBOOK_CATEGORY'];?>"></label></td>
  41. <td><input type="label" name="ebookfilename[]" value="<?php echo $row['EBOOK_FILENAME'];?>"></label></td>
  42. </tr>
  43. <?php
  44. }//end of while loop
  45. ?>
  46. </tbody>
  47. </table>
  48.  
  49. <button type="submit" class="btn btn-hg btn-primary" name="AddEbooks">
  50. Submit
  51. </button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement