$query = "SELECT * FROM orders";
$info =mysql_query($query) or die ("Lezen gegevens mislukt.");
while ($gegeven = mysql_fetch_object($info)) {
//If cmd has not been initialized
if(!isset($cmd))
{
//display all the news
$result = mysql_query("select * from orders 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