Re: [PHP] random HTML pages from PHP calls

2002-05-27 Thread Justin French
What's the connection between the id and the random pages? if you had 10 "html page" file names in a MySQL table, or an array, you'd be able to pick one of them at random and include it. eg SELECT file_name FROM files ORDER BY RAND() LIMIT 1 never had to do it with an array, but i'm guessing ar

[PHP] random HTML pages from PHP calls

2002-05-27 Thread r
Hey all, I'm calling a PHP "GimmeRandom.php?id=35557" and what this page does is take the "id" and update the number in the database by +1 (till here no problem) then what its supposed to do is give me ANY ONE of 10 prewritten html pages in a random order. I know this is pretty easy but my brai