note 26863 added to function.rand

From: Date: Fri, 15 Nov 2002 05:48:58 +0000
Subject: note 26863 added to function.rand
Groups: php.notes 
Request: Send a blank email to php-notes+get-39519@lists.php.net to get a copy of this message
This is not producing a random order for me.... $statement = "SELECT * FROM table ORDER BY rand()"; $result = mysql_query ("$statement"); What gives? It worked before I upgraded to the newest version. When I input the statement at the mysql prompt it works. Doin't this way doesn't. -- http://www.php.net/manual/en/function.rand.php http://master.php.net/manage/user-notes.php?action=edit+26863 http://master.php.net/manage/user-notes.php?action=delete+26863 http://master.php.net/manage/user-notes.php?action=reject+26863

« previous php.notes (#39519) next »