Yes. That is why you need to put some effort into studying the basics.
So go back to the books and read up on making a connection between the PHP script and the database. Learn the basics about queries, and extracting the information from the results of those queries.
All of these things are basic to PHP programming.
Class dismissed! ;)