storing comment by user
<p>I am creating a site where it will have a member table where all user can comment among them. user 1 can comment in user 2 and viceverse. </p>

<pre><code>    session_start();

include_once "scripts/connect.php"; 


$id = $_GET['category_id'];
$name = $_GET['name'];
$id2 = $_GET['ids'];
$toplinks = "";

if (isset($_SESSION['category_id'])) {
    // Put stored session variables into local php variable
    $userid = $_SESSION['category_id'];
    $username = $_SESSION['name'];
    $toplinks = '&lt;a href="member_profile.php?id=' . $userid . '"&gt;' . $username .   '&lt;/a&gt;   &amp;bull; 
    &lt;a href="member_account.php?id=' . $userid . '"&gt;My Account&lt;/a&gt; &amp;bull; 
    &lt;a href="logout.php"&gt;Log Out&lt;/a&gt;';

} else {
    $toplinks = '&lt;a href="register.php"&gt;Register&lt;/a&gt; &amp;bull; &lt;a    href="login.php"&gt;Login&lt;/a&gt;';
}
</code></pre>

<p>the above script will check if session exist then connect to the database, and execute if session started. Now I want to store comment in user 1 profile from any other user and viceverse, how can I create a comment script form?</p>
