function 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 "

";echo name_header($p_id,$m_id);echo " has no testimonials.

"; } else { $res=sql_execute($sql_query,'res'); while($tst=mysql_fetch_object($res)){ echo ""; $date=date("F d, Y",$tst->added); echo "
";show_photo($tst->from_id);echo "
"; show_online($tst->from_id);echo "
$date
".stripslashes($tst->testimonial)."
"; }