473,320 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

order by rand()

------=_NextPart_000_00A3_01C36053.EEA971A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hey all... I did a quick check of the archives, but didn't see anything =
recent about this...

I use PHP and mySQL, and am supposed to be able to randomize the order =
in which the rows are held when retrieved using ORDER BY RAND(). This =
isn't working for me... it's on a third-party server over which I have =
little control, but the params are as follows: php 4.0.3pl1, mysql =
3.22.32. I've read of problems with this on Win32 systems, but this =
runs on linux using apache. Any assistance would be appreciated.

Thank you,

Marc

-=3D-=3D-=3D-=3D-
No testimony is sufficient to establish a miracle unless the testimony =
be of such a kind that its falsehood would be more miraculous than the =
fact which it endeavours to establish. - David Hume
-=3D-=3D-=3D-=3D-
------=_NextPart_000_00A3_01C36053.EEA971A0--
Jul 19 '05 #1
0 1402

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jefferis NoSpamme | last post by:
I have a query that is showing new items in a store based upon their inventory date. The problem with my Random order sort is that when the "next" link is pressed, the random function is called...
1
by: numismatica | last post by:
I am managing banners visualization using a php/mysql script. Currently, the banner is extracted from a table using a "select * from banners order by rand limit 1" query. Anyway this is a...
2
by: Joe Blower | last post by:
When I execute the following SQL statement at the mysql> prompt, I get a random result: SELECT proxy FROM proxies WHERE active = 1 ORDER BY RAND() LIMIT 1; When I wrap it in my perl code, I...
0
by: Metalitalia.com (Dave) | last post by:
Hi all, Does anyone know where I can find any documentation and/or information about the algorithm used in ORDER BY RAND() in mysql ? Thanks in advance. Bye Dave
22
by: Nhmiller | last post by:
Is there a way to do this? Thanks. Neil Cat Paintings At Carol Wilson Gallery http://www.carolwilsongallery.com
21
by: dragoncoder | last post by:
Consider the following code. #include <stdio.h> int main() { int i =1; printf("%d ,%d ,%d\n",i,++i,i++); return 0; }
3
by: sonalee | last post by:
I want to know what is the meaning of this Select statement after we have use order by clause if we use or not will it affect this statement order by rand() limit 1
3
by: dinox | last post by:
hello, i tried searching for something similar to my situation but i haven't found so far.. for example ... i have users table with 15 registered users and i want to show only 5 of them in front...
15
by: Rich Fife | last post by:
Quick rand() question: I know you're not supposed to use "rand() % 1024" for instance, because it focuses on the lower bits. However, it seems to me that given that the argument is not a power...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.