php-db | 2001011
Date: 01/03/01
- Next message: Marcelo Gulin: "Re: [PHP-DB] are you sure?"
- Previous message: Adv. Systems Design: "[PHP-DB] are you sure?"
- Next in thread: Jon Haworth: "RE: [PHP-DB] Pulling random HTML code out of a table"
- Maybe reply: Jon Haworth: "RE: [PHP-DB] Pulling random HTML code out of a table"
- Maybe reply: Jon Haworth: "RE: [PHP-DB] Pulling random HTML code out of a table"
- Reply: Cal Evans: "RE: [PHP-DB] Pulling random HTML code out of a table"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Okay, this is the scenario:
I have a table with two columns. One called CodeID and one called code. In
the code column is HTML code. (duh)
Now, I want to create a query which chooses a random CodeID and pulls out
the code associated with it. I then simply echo the code unto the web page.
How do I make the query?
Really, really thankful for an answer!
/Mattias
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Marcelo Gulin: "Re: [PHP-DB] are you sure?"
- Previous message: Adv. Systems Design: "[PHP-DB] are you sure?"
- Next in thread: Jon Haworth: "RE: [PHP-DB] Pulling random HTML code out of a table"
- Maybe reply: Jon Haworth: "RE: [PHP-DB] Pulling random HTML code out of a table"
- Maybe reply: Jon Haworth: "RE: [PHP-DB] Pulling random HTML code out of a table"
- Reply: Cal Evans: "RE: [PHP-DB] Pulling random HTML code out of a table"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

