All pastes #176981 Raw Edit

Untitled

public text v1 · immutable
#176981 ·published 2006-09-20 02:21 UTC
rendered paste body
<div id="col_right">
  
<h3>A<small>DMIN</small></h3>
   
<div id="news_aticle">
<h4><a href="?p=news">Add News</a></h4>

<form action="addnews.php" name="addnews" method="post">	

<?php
$results = mysql_query("SELECT * FROM `news` ORDER BY `newsID` DESC");
?>

<input type="text" name="query1" value="title" onclick="this.value='';this.onclick='';" /></p>
<p><textarea name="query2" cols="42" rows="8"></textarea></p>
<input type="hidden" name="addnews" value="'.$addnews.'" />
<p><input name="submit" type="submit" value="Submit" /></p>
</form>

<h4><a href="?p=news">Delete News</a></h4>

<form action="delnews.php" id="action" name="action" method="post">			

<?php
while ($output = mysql_fetch_array($results)) {
?>

<div id='news_aticle'>
<h4><a href='#'> <?=$output[title]?> </a></h4>
<p> <?=$output[description]?> </p>
<p>posted by: <a class='user_name' href='#'> <?=$output[user]?> </a> @ <?=$output[timestamp]?> </p>
<p><input name="<?=$row[newsID]?>" type='checkbox' id="<?=$row[newsID]?>" value="<?=$row[newsID]?>" /></p>
</div>

<?php
}
?>

<p><input name='perform' id='perform' type='submit' value='DELETE' /></p>
</form>	

</div>   
</div>