$p"; } $pmsgs=mysql_query("SELECT p.id,user$from u,date,t.title,msgread,name,sex,powerlevel FROM pmsgs p,pmsgs_text t,users u WHERE user$to=$u AND p.id=pid AND user$from=u.id ORDER BY p.id DESC LIMIT $pmin,$ppp"); $from[0]=strtoupper($from[0]); if(!$view) $viewlink="View sent messages"; else $viewlink="View received messages"; print " $header
$fonttag$boardname - Private messages: $msgtotal $smallfont$viewlink | Send new message
$tblstart $tccellh>  $tccellh>Subject $tccellh>$from $tccellh width=150>Sent on "; while($pmsg=mysql_fetch_array($pmsgs)){ $new=($pmsg[msgread]?' ':''); $uid=$pmsg[u]; $namecolor=getnamecolor($pmsg[sex],$pmsg[powerlevel]); print " $tccell1>$new $tccell2l>$pmsg[title] $tccell2>$pmsg[name] $tccell2>".date($dateformat,$pmsg[date]+$tzoff) ; } print "$tblend$smallfont$pagelinks$footer"; printtimedif($startingtime); ?>