rendered paste bodyfunction show_testimonials($p_id,$m_id){
$sql_query="select * from testimonials where mem_id='$p_id' and stat='a'";
$num=sql_execute($sql_query,'num');
if($num==0){
echo "<p align=center>";echo name_header($p_id,$m_id);echo " has no testimonials.</p>";
}
else {
$res=sql_execute($sql_query,'res');
while($tst=mysql_fetch_object($res)){
echo "<table class='body' vasilek><tr><td class=lined>";show_photo($tst->from_id);echo "</br>";
show_online($tst->from_id);echo "</td>";
$date=date("F d, Y",$tst->added);
echo "<td valign=top>$date</br>".stripslashes($tst->testimonial)."</td></table>";
}