View Full Version : PHP/MySQL - Randomly display a collection of qoutations
I have a text file that contains a large collection of quotations. I would like to import these into a MySQL database and then have a PHP script randomly call up a quote from the database and display it. I have seen several sites that do this, and was wondering if any of you could provide any guidance on where I may start looking for details on how to do this.
Thanks in advance for your help.
:)
BerksWebGuy
1-9-05, 06:34 PM
Just to get the basics of PHP and MySQL, go a few googles, look at the stickies in this forum, and look through a few posts.
Making it random is just a matter of a mysql query...not hard at all (here's just one post about it HERE (http://forum.powweb.com/showthread.php?t=36581&highlight=php+random) ).
Thanks for the feedback. I found *exactly* what I was looking for here:
http://www.aasted.org/quote/
:)
Note: This does not use MySQL but rather the original *nix fortune files...which makes my work way easier!
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.