Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <?php
  2. // Connection information to database has been removed.
  3.  
  4. // $Row[1] - first name of faculty
  5. // $Row[2] - last name of faculty
  6. // $fieldRow[0] - course ID
  7. // $fieldRow[1] - course name
  8. // $fieldRow[2] - course year
  9. // $fieldRow[3] - number of units
  10.  
  11. echo "<table><caption>....for " . $Row[1] . " " . $Row[2] . "</caption>
  12. <tr><th>Course ID</th><th>Course Name</th><th>Course Year</th><th>Units</th></tr>";
  13. while ($fieldRow = mysqli_fetch_row($result2))
  14. {
  15. echo "<tr><td>" . $fieldRow[0] . "</td><td>" . $fieldRow[1] . "</td><td>" . $fieldRow[2] . "</td><td>" . $fieldRow[3] . "</td><td><button name='" . $fieldRow[0] . "'>Select</button></td></tr>";
  16. }
  17. echo "</table>";
  18. ?>
  19.  
  20. <form method="get" action="class.php">
  21. <p>Enter Course ID
  22. <input autofocus="autofocus" tabindex="1" type="text" maxlength="5" name="classSelect" title="Enter Class Number" />
  23. </p>
  24. <p>
  25. <button tabindex="2" type="submit">Select</button>
  26. </p>
  27. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement