i have three user A,B and C user A can only see what he uploaded
in the userpanel page and the for userB and C.i want user A to share
want he upload with user B alone by clicking a link named share that
is in front of want user A upload which willnow display in the userpanel
of user B
in the userpanel page and the for userB and C.i want user A to share
want he upload with user B alone by clicking a link named share that
is in front of want user A upload which willnow display in the userpanel
of user B
Code:
userpanel page
<?php
$value = "SELECT username FROM account WHERE ID = '{$_SESSION['user_id']}'";
$conta = mysql_query ($value) or die('query error');
$time = mysql_fetch_array ($conta);
$user = $time[username];
$data = "SELECT * FROM store WHERE pick = '$user'";
$result = mysql_query ($data) or die('query error');
//$part = mysql_fetch_array ($result);
//$present = $part[objectname];
//echo "$present";
$count = 0;
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)){
$present = $line[objectname];
echo '<table style="width: 250px;">';
echo '<tr>';
echo"<td>$present";
echo '<td><a id="delete" href="deleted.php?userfile=' . $present . '">delete</a>';
echo '</tr>';
$count++;
}
echo '</table>';
?>
Comment