Maybe not a great example, you can make a simple blog from scratch in like 20 lines of PHP/MySQL. I did this as a young teenager by copy-pasting some example code from Tizag's MySQL tutorial (which amazingly is still up, in its original condition![0])
(I wish I could share the original code, but I don't have it here.)
(I wish I could share the original code, but I don't have it here.)
[0] http://www.tizag.com/mysqlTutorial/