With the following query;
SELECT * FROM advertiser_info WHERE CreditLeft >= 0.5 ORDER BY RAND() LIMIT 1
If the RAND() function was not enabled on that version of MySQL, would it yeild an error, or just ignor it? For some resone, when I run this command, it ALWAYS returns the same result. I know definatly there are 3 results in the table...but only one of them ever seems to get chosen
Any ideas?
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
SELECT * FROM advertiser_info WHERE CreditLeft >= 0.5 ORDER BY RAND() LIMIT 1
If the RAND() function was not enabled on that version of MySQL, would it yeild an error, or just ignor it? For some resone, when I run this command, it ALWAYS returns the same result. I know definatly there are 3 results in the table...but only one of them ever seems to get chosen
Any ideas?
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates


Re: [SpeedStreet] RAND()