Help With Putting Things On A Page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
SilverMist
Forum Commoner
Posts: 65
Joined: Tue Mar 02, 2004 2:06 pm
Location: Canada
Contact:

Help With Putting Things On A Page

Post by SilverMist »

Hey,
I'm doing a thing with cron where it picks six horses, 1,2,3,4 etc to 6, then it posts the results on a page. My cron code is:

Code: Select all

SELECT * FROM horses ORDER BY RAND() LIMIT 6
And I need it to post to a page such as show.php?id=$id. I need it to do this for anywhere upwards of 10+ shows a day...can anyone help? I know I'm being very vague but I've researched this and can't find anything.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

so you want to request a seperate page on your site?

fopen() can do this pretty easy. file_get_contents() does it very well too. Although I'd suggest figuring out how to include() the file, as it'll process faster.. unless time isn't much of an issue.
Post Reply