its not working never mind
Help Me
Collapse
X
-
GuestTags: None
-
Guest -
Guest
help me bout my comments if i will add comments and if i will vsit the comments of all users my comments are also in thier comments pls help meCode:else if($action=="comments") { $bid = $_GET["bid"]; addonline(getuid_sid($sid),"Viewing Comments",""); echo "<card id=\"main\" title=\"View Comments\">"; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_comments WHERE cmowner='".$who."'")); $num_items = $noi[0]; //changable $items_per_page= 5; $num_pages = ceil($num_items/$items_per_page); if(($page>$num_pages)&&$page!=1)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; $sql = "SELECT cmowner, cmsigner, cmmsg, dtime FROM ibwf_comments WHERE cmowner='".$who."' ORDER BY dtime DESC LIMIT $limit_start, $items_per_page"; echo " "; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { if(isonline($item[1])) { $iml = "<img src=\"images/onl.gif\" alt=\"+\"/>"; }else{ $iml = "<img src=\"images/ofl.gif\" alt=\"-\"/>"; } $snick = getnick_uid($item[1]); $lnk = "<a href=\"index.php?action=viewuser&who=$item[1]&sid=$sid&type=send\">$iml$snick</a>"; $bs = date("d m y-H:i:s",$item[3]); echo "$lnk [size="1"]"; $text = parsepm($item[2], $sid); echo "$text $bs $delnk "; echo "[/size]"; } } echo "</p>"; echo "<p align=\"center\">"; if($page>1) { $ppage = $page-1; echo "<a href=\"lists.php?action=$action&page=$ppage&sid=$sid&bid=$bid&type=send\">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"lists.php?action=$action&page=$npage&sid=$sid&bid=$bid&type=send\">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { $rets = "Jump to page: <input name=\"pg\" format=\"*N\" size=\"3\"/>"; $rets .= "<anchor>[GO]"; $rets .= "<go href=\"lists.php?type=send\" method=\"get\">"; $rets .= "<postfield name=\"action\" value=\"$action\"/>"; $rets .= "<postfield name=\"who\" value=\"$who\"/>"; $rets .= "<postfield name=\"sid\" value=\"$sid\"/>"; $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>"; $rets .= "</go></anchor>"; echo $rets; } echo "<a href=\"index.php?action=comment&sid=$sid&bid=$bid&type=send\">"; echo "Add Your Comments</a> "; echo "</p>"; ////// UNTILL HERE >> echo "<p align=\"center\">"; echo "<a href=\"index.php?action=main&sid=$sid&type=send\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; }
Comment
-
is that wizard coding lmaoVisit: Chat4u.mobi - The New Lay Of being a site of your dreams!
Visit: WapMasterz Coming Back Soon!
_______
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______
Info & Tips
php.net
w3schools.com
Comment
-
Guest


Comment