All pastes #77217 Raw Edit

Untitled

public php v1 · immutable
·published 2006-07-02 19:58 UTC
rendered paste body
		   	<?php		   					$id = (int)$_GET['id'];				if ($_GET['edit'] == 'pastEntries'){ 				?>				   <strong>Past Entries: </strong>  				   <?php				    $query0 = mysql_query("SELECT title, id FROM main ORDER BY id");           	    while(($oPast = mysql_fetch_assoc($query0)) !== false){          	              	    		 $title = $oPast['title'];          	    							 $id2 = $oPast['id'];												?>          	    [<a href="admin.php?edit=pastEntries&id=<?=$id2?>"><?=$title?></a>]          	    <?php 			 }          	    												$oContent = $HTTP_POST_VARS['content'];          	    							$oTitle = $HTTP_POST_VARS['title'];          	    							          	    $query1 = mysql_query("SELECT content, title, date, id FROM main WHERE id=$id");           	    while(($oBlog = mysql_fetch_assoc($query1)) !== false){            	              			if(!$oContent){  												$oContent = $oBlog['content'];}  											if(!$oTitle){  												$oTitle = $oBlog['title'];}	   												   			?>