rendered paste body<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Scotty's annoyance. :D</title>
</head>
<body>
<?php
if (isset($_GET['quote'])) {
$quote = intval($_GET['quote']);
$spaz = "WHERE quoteID = '".$quote."' LIMIT 1";
} else {
$spaz = "ORDER BY RAND() LIMIT 1";
}
if ($fetch = mysql_query("SELECT quoteID, quoteName, quoteText FROM qm_quotes ".$spaz."")) {
$quote = mysql_fetch_array($fetch);
$tmp = '<p id="'.$quote['quoteID'].'">'.$quote['quoteText'].'<br />'.$quote['quoteName'].'</p>';
echo $tmp;
}
}
?>
</body>
</html>