i had it working once and now i've edited something and cant find what the problem is lo, can anyone help
its just not displaying anything,
Code:
///////////////////////////mms inbox////////////////////////////// else if($action=="mms"){ addonline(getuid_sid($sid),"MMs Inbox","mms.php$chatlink2$pass"); $main.= head_tag(getnick_sid($sid)."@MMS Inbox",1,getnick_sid($sid)); $title="<b>MMS Inbox</b>"; $main="<div class=".align().">"; $view = $_GET["view"]; //////ALL LISTS SCRIPT << if($view=="")$view="all"; if($page=="" || $page<=0)$page=1; $myid = getuid_sid($sid); $doit=false; $num_items = getmmscount($myid,$view); //changable $items_per_page= 7; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; if($num_items>0){ if($doit){ $exp = "&rwho=$myid"; }else{ $exp = ""; } if($view=="all"){ $sql = "SELECT a.username, a.id, b.byuid, b.unread, b.starred FROM users a INNER JOIN mms b ON a.id = b.byuid WHERE b.touid='".$myid."' ORDER BY b.timesent DESC LIMIT $limit_start, $items_per_page "; } else if($view=="snt"){ $sql = "SELECT a.username, a.id, b.touid, b.unread, b.starred FROM users a INNER JOIN mms b ON a.id = b.touid WHERE b.byuid='".$myid."' ORDER BY b.timesent DESC LIMIT $limit_start, $items_per_page "; } else if($view=="str"){ $sql = "SELECT a.username, a.id, b.byuid, b.unread, b.starred FROM users a INNER JOIN mms b ON a.id = b.byuid WHERE b.touid='".$myid."' AND b.starred = '1' ORDER BY b.timesent DESC LIMIT $limit_start, $items_per_page "; } else if($view=="urd"){ $sql = "SELECT a.username, a.id, b.byuid, b.unread, b.starred FROM users a INNER JOIN mms b ON a.id = b.byuid WHERE b.unread = '1' ORDER BY b.timesent DESC LIMIT $limit_start, $items_per_page "; } } $items = mysql_query($sql); if (!$items) { $main.= "<br/>You have no messages!<br/><a href=\"mms.php?action=sendmms&sid=$sid\">compose new</a><br/>"; $main.= "<br/><a href=\"mms.php?action=mmsdisp&sid=$sid\">go back</a><br/>"; $L1="$sixkey<a $key6 title=\"Inbox\" href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>"; $L2="$sevenkey<a $key7 title=\"BuddyList\" href=\"../buds/buds.php?sid=$sid\">BuddyList</a>"; $L3="$eightkey<a $key8 title=\"Chat\" href=\"../chat/public.php?sid=$sid\">Chat</a>"; $L4="$ninekey<a $key9 title=\"Forums\" href=\"../forums/forums.php?sid=$sid\">Forums</a>"; $L5="$zerokey<a $key0 title=\"Main Menu\" href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>"; echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main); echo foot_tag(); exit(); } $main.= mysql_error(); while ($item = mysql_fetch_array($items)){ if($item[3]=="1"){ $iml = "<img src=\"../images/npm.gif\" alt=\"»\"/>"; }else{ if($item[4]=="1"){ $iml = "<img src=\"../images/spm.gif\" alt=\"*\"/>"; }else{ $iml = "<img src=\"../images/opm.gif\" alt=\"-\"/>"; } } $lnk = "$iml<a href=\"mms.php?action=readmms&pmid=$item[1]\">$item[0]</a>"; $main.= "$lnk<br/>"; } $main.= "<p align=\"center\">"; $npage = $page+1; $main.= "<a href=\"mms.php?action=sendmms\">Compose</a><br/>"; if($page>1){ $ppage = $page-1; $main.= "<a href=\"mms.php?action=mms&page=$ppage&view=$view\">«Previous</a> "; } if($page<$num_pages){ $npage = $page+1; $main.= "<a href=\"mms.php?action=mms&page=$npage&view=$view\">»Next</a>"; } $main.= "<br/>Page $page of $num_pages<br/>"; if($num_pages>2){ $rets = "Jump to page<form action=\"mms.php\" method=\"get\"><input name=\"page\" format=\"*N\" size=\"3\"/>"; $rets .= "<input type=\"hidden\" name=\"action\" value=\"mms\"/>"; $rets .= "<input type=\"hidden\" name=\"view\" value=\"$view\"/>"; $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>"; $rets .= "<input type=\"submit\" value=\"Go\"/></form>"; $main.= $rets; }else{ } $L5="$sixkey<a $key6 href=\"../online.php?sid=$sid\">Online List</a>"; $L6="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>"; $L7="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>"; $L8="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>"; $L9="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>"; $main.= xhtml($sid,$title,$L6,$L7,$L8,$L9,$main); $main.= foot_tag(); exit();
Comment