SOLVED - Need Help With Random Query Display
Posted: Wed Nov 07, 2007 6:21 pm
Hello,
I'm new to PHP/MYSQL and don't really know the proper way to search for a solution to my question.
When a user visits a page on my site, I want that page to randomly display table entires that have the number 1 in a specific column that I have setup in MySQL. Basically I have 100 stories in a database, I want 10 of them to be randomly displayed when someone visits the page. Let me know if I'm being to vague, like I mentioned I don't know how to even ask the question. oops:
Any link to a tutorial or the proper terminology so I can do a better search would be appreciated.
Thanks,
Gary
I'm new to PHP/MYSQL and don't really know the proper way to search for a solution to my question.
When a user visits a page on my site, I want that page to randomly display table entires that have the number 1 in a specific column that I have setup in MySQL. Basically I have 100 stories in a database, I want 10 of them to be randomly displayed when someone visits the page. Let me know if I'm being to vague, like I mentioned I don't know how to even ask the question. oops:
Any link to a tutorial or the proper terminology so I can do a better search would be appreciated.
Thanks,
Gary