Código PHP:
while(xxx){
if($row['CatParentId']!=0 && $row['CatId']==1 or $row['CatId']==2 or $row['CatId']==3){
print "\n</ul>\n";
}
}
gracias.
ps: esto no me sirve:
Código PHP:
$row['CatParentId']!=0 && $row['CatId']>1