\n"; // start a loop to print all of the courses with their book information // the mysql_fetch_array function puts each record into an array. each time it is called, it moves the array counter up until there are no more records left while ($books = mysql_fetch_array($result)) { // assuming you have three important columns (the index (id), the course name (course), and the book info (bookinfo)) // start displaying the info; the most important part is to make the name an array (notice bookinfo[$i]) print ""; print "

{$books['Verify']}:

\n"; // add 1 to the count, close the loop, close the form, and the mysql connection ++$i; } print ""; print ""; mysql_close(); ?>