All pastes #730255 Raw Edit

Someone

public text v1 · immutable
·published 2007-10-09 01:45 UTC
rendered paste body
<?php
/* Begin Database Query Code */
 
$dbquery = mysql_query("SELECT `title` FROM `videodata`") or die(mysql_error()); // Select all data from the "videodata" table or show an error.

mysql_close($link); // Close connection
 
echo "<SELECT NAME=\"govideo\">"; // Print opening tag of drop-down box.
 
while ( $title = mysql_fetch_assoc($dbquery) )
{
echo "<OPTION VALUE=\"vidrequest.php?id=" . $i . "\">" . $title['title'] . "</OPTION>";
} 
 
echo "</SELECT>"; // Echo closing tag of drop down box.
 
/* End Database Query Code */
 
?>