More on Random Entries and using MySql Query

| No Comments |

My previous post about this subject can be viewed here. So much for thinking this code worked properly. It did for pages that were in my main directory. Viewing archived entries that were saved to a different directory gave an error, because the function calls for a path to the sql query and since I use php-includes for the side-bar, the path was different. One way to get around this would have been to hard code everything onto the templates, but an easier solution was to use David Raynes MultiBlog with his Random Entries plugin. Now the random quotes can be viewed from anywhere in my site and it seems a far easier solution.

Leave a comment

Twitter Updates

Subscribe

Enter your Email


Preview | Powered by FeedBlitz

Archives

Powered by Movable Type 4.23-en

Random Pix



HandpaintingQ-Dog

HandpaintingQ-Dog

Random Quote

John Berger

"The poverty of our century is unlike that of any other. It is not, as poverty was before, the result of natural scarcity, but of a set of priorities imposed upon the rest of the world by the rich. Consequently, the modern poor are not pitied - but written off as trash. The twentieth-century consumer economy has produced the first culture for which a beggar is a reminder of nothing."

:: (1926~) English Painter, Teacher, Art Critic

Recent Comments