Re: random messages ...how?
| From: | David Robley | Date: | Tue, 12 Sep 2000 01:01:11 +0000 |
| Subject: | Re: random messages ...how? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16262@lists.php.net to get a copy of this message | ||
On Tue, 12 Sep 2000, Larry Linthicum wrote:
> I have a script that retrieves the users first name from the database and
> prints a greeting "Hi, $name, welcome back
>
> I'd like to make it a little more interesting by randomly printing one of
> several greetings and, of course, including the users name
>
> Hints on where to start? I'm sure this is simple, but so am I
srand() and rand() might be good start points.
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA