Show Me The Datafeed

The next step in creating a database driven website is to display the results.

We have the contents loaded up in the MySQL database ready and waiting.

First thing to do is write a simple query that pulls out a few of the entries.

The way I will do that looks like this:


The important part is line #62, the one that starts with $sql.

The way to read it is “Give me everything that has the word ‘Tree’ in the title.

Once we have that information, then lets print it out.

The “while” statement on line #65 goes through the results and prints out the title and description. Nothing fancy … at least not yet.

That’s enough to hold me over. Enjoy the “family video” that shows you how to do this.

Comments on this entry are closed.

Previous post:

Next post: