kat.php değil nerde gösterceksen oraya sql sorgusu yazıp while ile döndüreceksin.
sql sorgusunu yazarken where katid='2' kullanıcaksın