Pulling random HTML code out of a table

From: Date: Wed, 03 Jan 2001 17:37:39 +0000
Subject: Pulling random HTML code out of a table
Groups: php.db 
Request: Send a blank email to php-db+get-5568@lists.php.net to get a copy of this message
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

« previous php.db (#5568) next »