note 26862 added to function.mysql-query
| From: | joseph4829 at yahoo dot com | Date: | Fri, 15 Nov 2002 05:41:16 +0000 |
| Subject: | note 26862 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39518@lists.php.net to get a copy of this message | ||
Why is it this code doesn't produce output in random order?
$statement = "SELECT * FROM table ORDER BY rand()";
$result = mysql_query ("$statement");
--
http://www.php.net/manual/en/function.mysql-query.php
http://master.php.net/manage/user-notes.php?action=edit+26862
http://master.php.net/manage/user-notes.php?action=delete+26862
http://master.php.net/manage/user-notes.php?action=reject+26862