Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Connection information to database has been removed.
- // $Row[1] - first name of faculty
- // $Row[2] - last name of faculty
- // $fieldRow[0] - course ID
- // $fieldRow[1] - course name
- // $fieldRow[2] - course year
- // $fieldRow[3] - number of units
- echo "<table><caption>....for " . $Row[1] . " " . $Row[2] . "</caption>
- <tr><th>Course ID</th><th>Course Name</th><th>Course Year</th><th>Units</th></tr>";
- while ($fieldRow = mysqli_fetch_row($result2))
- {
- 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>";
- }
- echo "</table>";
- ?>
- <form method="get" action="class.php">
- <p>Enter Course ID
- <input autofocus="autofocus" tabindex="1" type="text" maxlength="5" name="classSelect" title="Enter Class Number" />
- </p>
- <p>
- <button tabindex="2" type="submit">Select</button>
- </p>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement