<?php include_once 'includes/db.php'; include_once 'includes/FbWall.php'; include_once 'includes/tolink.php'; include_once 'includes/textlink.php'; include_once 'includes/htmlcode.php'; include_once 'includes/time_stamp.php'; include_once 'session.php'; $FbWall = new FbWall(); $comment = $_POST['comment']; $comment = str_replace("\n", '<br/>', $comment); $comment = mysql_real_escape_string($_POST['comment']); $msg_id = $_POST['msg_id']; $cdata = $FbWall->Insert_Share($uid, $msg_id, $comment);