All pastes #544804 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-06 16:23 UTC
rendered paste body
<?php 
session_start();
require_once('includes/include.php');

//unset any preview info
unset_preview();
checkremember();

$result = mysql_query("SELECT * FROM content ORDER BY ID DESC") 
	or die(mysql_error());  

$num = mysql_num_rows($result);
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title><?php include('title.php'); ?> &raquo; Home</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
  
<body>

<div id="header"> 
<p class="maintitle"><?php include('title.php') ?></p>
<p class="slogan"><?php include('slogan.php') ?></p>
</div>

<div id="text">

<?php 
 while($row=mysql_fetch_array($result)) { 
?>

<div class="titleofpost"><div class="titletext"><a href="single.php?pid=<?php echo $row['ID']; ?>"><?php echo $row["Title"]; ?></a> </div></div>
<div class="postdata">
<div class="contentwrap">


<p class="postentry">
	<p class="date">Posted on the <?php echo $row['Date']; ?> at <?php echo $row['Time']; ?>
<?php
		if (show_edit_link()) 
			{ ?>
		
		
		<a href="edit.php?pid=<?php echo $row['ID']; ?>">Edit this post</a>
}
?>
</p>
<?php echo $row['Postcontent']; ?></p>


</div>

</div>

<div class="spacer"> </div>
<?php 
}
?>

</div>
<div id="footer"><div class="footercontent"><?PHP include('footer.php'); ?></div></div>


</body>

</html>