where uye="$uye" order by tarih limit ...

$r = mysql_query("SELECT * FROM tablo where uye='$nick' order by tarih desc limit 5");

gibi bir sorgu işini görür tabi tarih ve üye adı dbde saklı ise