$PATH = "./"; include "top2.php"; if (in_array("By Title", $_REQUEST)) { $t = $_REQUEST['t']; $single = mysql_db_query("stake", "SELECT * FROM posts WHERE id=\"" . mysql_real_escape_string($t) . "\";"); $date = mysql_result($single, 0, "date"); $post = mysql_result($single, 0, "text"); echo ""; echo "
"; mysql_free_result($single); } else { $n = 10; if (in_array("n", $_REQUEST)) { $n = $_REQUEST['n']; } if (!($n > 0)) $n = 10; elseif ($n == 666) $n = $total; for ($i = 0; $i < $n; $i = $i+1) { $date = mysql_result($all_posts, $i, "date"); $post = mysql_result($all_posts, $i, "text"); echo ""; echo "