";
}
}
if ($id) {
$qry="select distinct subscribe_id,subscribe_job from $networktable where pid='$id' and pjob='$pjob' and subscribe_id!='0' and status='approved' order by `date` desc limit $start,$perpage";
$rec=SelectQry($qry);
//$tqry="select distinct subscribe_id from $networktable where pid='$id' and subscribe_id!='0' and status='approved'";
$tqry="select distinct subscribe_id,subscribe_job from $networktable where pid='$id' and pjob='$pjob' and subscribe_id!='0' and status='approved'";
$trec=SelectQry($tqry);
//print "$qry";
}
if (($fid) && ($status=='add')) {
$mycomment=trim($mycomment);
if ($mycomment!='') {
$mycomment=ereg_replace("\'","\\'",$mycomment);
$insert="insert into $networktable (pid,pjob,MyPost,`date`,post_id,post_job,type,objectid) values ('$fid','$job','$mycomment','$current_datetime','$id','$pjob','$type','$objectid')";
print "$insert ";
// $insertrec = mysql_query("$insert") or $msg="Unable to insert post, contact admin. ";
if ($insertrec!='') { $msg="Comment successfully posted. Click on your posted comment to edit."; }
} else { $msg="Empty Post"; }
}
?>