here the code
<?php
session_start();
include "connect.php";
$share = protect($_POST['share']);
//var_dump($share);
$sql="SELECT * FROM table WHERE id ='$_SESSION['id']'";
$result=mysql_query($sql) or die(mysql_error());
$count=mysql_num_rows($result);
while($row =...