Now that you have learned how to create snippets, let us create a snippet that displays a random fortune from the database. Fortunes are just quotations from famous texts. These are like a "quote of the day". They are called fortunes in the UNIX culture, after the introduction of the command-line program called fortune, many decades ago.
We will create a table that will hold the fortune and the author's name, using phpMyAdmin, to keep it simple. Most snippets that use a custom table will automatically create the table, if it doesn't exist already.