09-04-2009, 10:37 AM
[eluser]georgerobbo[/eluser]
Hello,
I'm starting to develop a random quote system. So as you could guess I will have all the quotes in a database and then randomly select a quote from the database.
But, I do not know how to do this? Is there a MYSQL feature where you can randomly select a row based on your primary key or must you select all the fields and then choose a random result from the array using PHP?
Hello,
I'm starting to develop a random quote system. So as you could guess I will have all the quotes in a database and then randomly select a quote from the database.
But, I do not know how to do this? Is there a MYSQL feature where you can randomly select a row based on your primary key or must you select all the fields and then choose a random result from the array using PHP?