note 29816 added to function.rand
| From: | datav90 at hotmail dot com | Date: | Wed, 26 Feb 2003 01:59:38 +0000 |
| Subject: | note 29816 added to function.rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44527@lists.php.net to get a copy of this message | ||
random = (rand(0,100));
$strsql = "SELECT * FROM
quotes WHERE id=".$random;
in this example i want to change the limits (0,100) to the max and min id value
how???
--
http://www.php.net/manual/en/function.rand.php
http://master.php.net/manage/user-notes.php?action=edit+29816
http://master.php.net/manage/user-notes.php?action=delete+29816
http://master.php.net/manage/user-notes.php?action=reject+29816