Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
Old 2008-08-22, 01:58 PM   #7
justbondage
I want to set the record straight - I thought the cop was a prostitute
 
justbondage's Avatar
 
Join Date: Jun 2008
Posts: 293
Would it not be more efficient however, to let MySQL run the function rand() instead of having it return your results only to let PHP perform a similar task?

I can see what you are saying (and select * is such a pussy way out, gets on my tits when I see it!) but the only alternative I can think of is to return all the results, then randomise them, which is going to mean possibly huge amounts of information being brought in for all but 10 records to be chucked out.

I did toy with the idea of making a random script that would generate say 10 IDs, and only return those from the database, but that assumes you have a table nicely ordered and no data ever gets removed from the table.
__________________
TOF - Post your galleries
JB - Post bondage stuff

ICQ - 424617189
justbondage is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:38 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc