$result="select tid from talk_rec where (pubtime>".$lastopentime." and uid in($fuids) and retid=0) or (content like '%".$uname."%' and pubtime>".$lastopentime." and retid=0) order by pubtime desc";
$unreadNums=mysql_num_rows(mysql_query($result));
$result="select tid from talk_rec where (pubtime>".$lastopentime." and uid in($fuids) and retid=0) or (content like '%".$uname."%' and pubtime>".$lastopentime." and retid=0) order by pubtime desc";
$unreadNums=mysql_num_rows(mysql_query($result));