query($query); if(!$result) { echo "
bad query - looking at all classes
"; } else { echo "
There are " . $result->num_rows . " Classes
"; } //I build a table out of all the classes. //this table then populates fields for its own individual form //in this way, when the user clicks on one of the buttons, //it is actually going to send the corresponding class ID //to the next page for me. Most people did this with one form //and the user typed in the course id. Doing things this way //can make things a little cleaner and user friendly. // It doesn't save on error checking though. echo ""; while($row = $result->fetch_assoc() ){ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
" ; echo "
"; echo ""; echo "
"; echo "
" . $row['Dept'] . "" . $row['Number'] . "" . $row['Sec'] . "" . $row['Name'] . "
"; $link->close(); ?>


  • Reset the Whole DB
  • Display All
  • List Course
  • Forms for Inserting New Data