All pastes #757030 Raw Edit

Stuff

public text v1 · immutable
#757030 ·published 2007-10-31 22:29 UTC
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=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<div align="center">
  
  <table width="800" border="0">
    <?php
	include("config/connect.php");
$Table = mysql_query("SELECT * FROM Comments ORDER by ID DESC LIMIT 0,30 ");
while($row = mysql_fetch_array($Table)){
$table = mysql_fetch_array("SELECT * FROM Users WHERE ID='".$row['Poster']."'");
 echo "
  <tr>
    <td><div align=\"center\">Poster:".$table['Username']."</div></td>
    <td><div align=\"center\">".$row['comment']."</div></td>
 </tr>";}
include("config/close.php");
?>
<?php        
if($_SESSION['ID'] = ''){}else{
 echo "<tr>
      <td colspan=\"3\"><div align=\"center\">
	  <form id=\"form1\" name=\"form1\" method=\"post\" action=\"index.php?p=post_com\">
        <label>
          <textarea name=\"Comment\" id=\"Comment\" cols=\"60\" rows=\"5\"></textarea>
          </label>
        <br /><input type=\"hidden\" name=\"Poster\" id=\"Poster\" value=\"".$_SESSION['ID']."\" />
        <input type=\"submit\" name=\"Submit\" id=\"Submit\" value=\"Post Comment\" />
      </form>
      </div>
    <div align=\"center\"></div>
    <div align=\"center\"></div>
	<div align=\"center\"></div>
	</td>
	</tr> ";}
?>      
  </table>
</div>
</body>
</html>