[PHP-DB] Re: Displaying Text From A Data File

2004-09-05 Thread Ron Piggott
Thanks for your responses guys. I got it to work. Ron - Original Message - From: Ron Piggott <[EMAIL PROTECTED]> To: PHP DB <[EMAIL PROTECTED]> Sent: Saturday, September 04, 2004 2:00 PM Subject: Displaying Text From A Data File > I am still new to PHP and I wanted to ask a question. >

[PHP-DB] Re: Displaying Text From A Data File

2004-09-04 Thread Torsten Roehr
"Ron Piggott" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am still new to PHP and I wanted to ask a question. > > I am wanting to create a PHP script to randomly display one of many greeting > messages on my web site. I was going to store them in a text based file. I > wanted P

Re: [PHP-DB] Re Displaying Text From A Data File

2004-09-04 Thread Peter Ellis
If it were a database, this would make sense. He's asking about a text- based file. This isn't really a database issue -- there's a lot of what are called "fortune scripts" out there that do exactly what you want. Do a search on Google. -- Peter Ellis - [EMAIL PROTECTED] Web Design and Developme

[PHP-DB] Re Displaying Text From A Data File

2004-09-04 Thread Neil Smith [MVP, Digital media]
It's actually very simple : Just use SELECT * FROM tbl_name ORDER BY RAND() LIMIT 1 Cheers - Neil At 17:35 04/09/2004 +, you wrote: Message-ID: <[EMAIL PROTECTED]> From: "Ron Piggott" <[EMAIL PROTECTED]> To: "PHP DB" <[EMAIL PROTECTED]> Date: Sat, 4 Sep 2004 14:00:56 -0400 MIME-Version: 1.0 Con