<?php
include ('config.php');
//If cmd has not been initialized
if(!isset($cmd))
{
//display all the news
$result = mysql_query("select * from hlmsolutions order by id");
//run the while loop that grabs all the news scripts
while($r=mysql_fetch_array($result))
{
//grab the title and the ID of the news
$title=$r["title"];//take out the title
$id=$r["id"];//take out the id
//make the title a link
echo "<a href='remove_news.php?cmd=delete&id=$id'>$title - Delete</a>";
echo "<br>";
}
}
?>