hey guys who wana help me i want to add a comment on a post and make it able to be showing just the persons own posts and friends post and anything they liked or posted in any place
curently its just showing everyones posts and cant delete any posts on here
also if its possible to make it able to post an image
curently its just showing everyones posts and cant delete any posts on here
Code:
$sql = "SELECT gbowner, gbsigner, gbmsg, dtime FROM redo_wall WHERE gbowner='".$who."' ORDER BY dtime DESC LIMIT 4"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { if(mysql_num_rows($items)>1) { $br = "<br/>"; }else{ $hr = ""; } while ($item = mysql_fetch_array($items)) { $hr ="<div class=\"hr\"></hr>"; $snick = getnick_uid($item[1]); $text = parsepm($item[2], $sid); echo "<table><tr><td>$foto</td><td>$seximg<a href=\"../profile/index.php?action=viewuser&who=$item[1]&sid=$sid\">$snick</a><br/>$text</td></tr></table>"; } }else{ echo "<i>*No Messages</i><br/>"; } echo "<onevent type=\"onenterforward\">"; echo "<refresh> <setvar name=\"msgtxt\" value=\"\"/>"; echo "</refresh></onevent>"; echo "<p align=\"center\">"; echo "<form method=\"post\" action=\"../home/wall.php?action=wall3&sid=$sid\">"; echo "Text:<input name=\"msgtxt\" maxlength=\"500\"/><br/>"; echo "<input type=\"hidden\" name=\"who\" value=\"$who\"/>"; echo "<input type=\"submit\" name=\"Submit\" value=\"Sign\"/><br/>"; echo "</form>"; echo "<br/>"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM redo_wall WHERE gbowner='".$who."'")); echo "<a href=\"../home/wall.php?action=wall&who=$who&sid=$sid\">Comments</a> [$noi[0]]";
Comment