Ok, Heres my code:

PHP Code:
<html><head><title>Test</title></head><body>
<? 
include("connect.inc"); 
mysql_select_db('news');
$getnews = "SELECT ID, Title, Textt FROM news";
$varnews = mysql_query($getnews) or die("Cannot fetch News");
while ($news = mysql_fetch_array($varnews)) {
$newsdata[] = array("titledata" => $news["Title"], "textdata" => $news["Textt"]);
}

foreach($newsdata as $key => $val) {
$tmptitle[] = $newsdata["titledata"];
}


$tmptitle = array_unique($tmptitle);
foreach($tmptitle as $key => $val) {
print $tmptitle[$key]["titledata"];
}

?>
</body></html>
Basically, it should output some titles, if i remove some of the code it does, but it doesn't display unique entires.

SO, Can anyone find anything wrong with this code?
At the moment, It outputs nothing at all.

Thanx for the help

Peter