Notice: Undefined variable: who in /home/ pr0blem can't solve

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Notice: Undefined variable: who in /home/ pr0blem can't solve

    hello i am getting this problem, how can i fix this?
    com site: http://vampist.net
    download site: http://wapdloads.net
    fb: http://www.facebook.com/pmplx

    #2
    i use the variable from the $HTTP_POST_VARS array but nothing happen
    com site: http://vampist.net
    download site: http://wapdloads.net
    fb: http://www.facebook.com/pmplx

    Comment


      #3
      Dat errorz happenin cuz a $who variable was not previously defined. Witowt seein d code i cant help

      Comment


        #4
        this error is not important just remove ~E_NOTICE from error reporting.
        Advertise your mobile site for FREE with AdTwirl

        Comment


          #5
          error is important and i believe that the problem is the hosting , riders and i using these script and it works but i can't find and error to him unlike in my hosting site,

          the error describes to get function $who variable in lavalair "viewusers" so whenever it appears to that, get function won't worked even the get page! when i click next it do not enter next pages

          this erros i found in all pages but don't means that this is not important because codes do not work


          Code:
          else if($action=="viewuser")
          {
          
          $nix = getnick_uid([b]$who[/b]);
            addonline(getuid_sid($sid),"Usha Profile $nix ","index.php?action=viewuser&who=$who");
              echo "<head>";
              echo "<title>View Profile</title>";
              $themes = mysql_fetch_array(mysql_query("SELECT theme, style, mid FROM ibwf_users WHERE id='".$who."'"));
              echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$themes[0]\">";
              echo "</head>";
              echo "<body>";
          include("header.php");
          if($themes[1]=="")
          {
          
              echo "";
          
          }
          else
          {
          
             echo "<style>body{background-image: url(../pics/$themes[1]);}</style>";
          
          }
          
          
          
              echo "<div align=\"center\">";
           $lastloc=cleanQuery($_GET["[b]lstloc[/b]"]);
          if($lastloc=="cht"){
          	$rid= cleanQuery($_GET["[b]rid[/b]"]);
              $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
              $rname = $rooms[1];
          }
            if($who==""||$who==0)
            {
           [b]   $mnick = $_POST["mnick"];
              $who = getuid_nick($mnick);[/b]
            }
            $whonick = getnick_uid($who);
            if($whonick!="")
            {
          
          
          
          if(isowner(getuid_sid($sid)))
            {
            echo "<a href=\"tuancp.php?action=user&amp;sid=$sid&amp;who=$who\">*Owner Tools*</a><br/>";
            echo "<a href=\"tuancp.php?action=addhall&amp;sid=$sid&amp;who=$who\">Add To Hall Of Fame</a><br/>";
             }
          if(isheadadmin(getuid_sid($sid)))
            {
            echo "<a href=\"headadmincp.php?action=user&amp;sid=$sid&amp;who=$who\">*Head Admin Tools*</a><br/>";
            }
          if(isleft(getuid_sid($sid)))
            {
            echo "<a href=\"manacp.php?action=user&amp;sid=$sid&amp;who=$who\">*Manager Tools*</a><br/>";
            }
            if(ismod($uid))
            {
            if(!isowner(getuid_sid($sid)))
            {
            if(!isheadadmin(getuid_sid($sid)))
            {
            if(!isleft(getuid_sid($sid)))
            {
            echo "<a href=\"admincp.php?action=user&amp;sid=$sid&amp;who=$who\">*Admin Tools*</a><br/>";
            }
            }
            }
            }
          echo "Members Rating: ";
          echo rating($who);
          echo " <br/>";
            $pmoodlink = getpmood($who);
            if($pmoodlink=="")
            {
            echo "";
            }else{
            echo "<img src=\"$pmoodlink\" alt=\"$whonick\"/><br/>";
            }
              if(isonline($who))
            {
              $iml = "<br/><img src=\"../images/onl.gif\" alt=\"+\"/>";
            }else{
              $iml = "<br/><img src=\"../images/ofl.gif\" alt=\"-\"/>";
            }
            $kaler = mysql_fetch_array(mysql_query("SELECT kaler FROM ibwf_users WHERE id='".$who."'"));
            //echo "<small><b><font color=\"$kaler[0]\">$iml$whonick's</font></b></small><br/>";
            $avlink = getavatar($who);
            if($avlink=="")
            {
            echo "<img src=\"thumb.php?image=nopics.gif&amp;w=50&amp;h=50&amp;type=jpg\" alt=\"avatars\"/>";
            }else{
            echo "<img src=\"thumb.php?image=..$avlink&amp;h=120&amp;w=150&amp;type=jpg\" alt=\"$whonick\"/>";
            }
            echo "<small><b><font color=\"$kaler[0]\">$iml$whonick's</font></b></small><br/>";
          
          
            $nopl = mysql_fetch_array(mysql_query("SELECT sex, birthday, location, married FROM ibwf_users WHERE id='".$who."'"));
            $uage = getage($nopl[1]);
            if($nopl[0]=='M')
            {
              $usex = "Male";
            }else if($nopl[0]=='F'){
              $usex = "Female";
            }else{
              $usex = "Argh! No Profile!";
            }
            $location = htmlspecialchars($nopl[2]);
            $marit = htmlspecialchars($nopl[3]);
            echo "<b>$uage/$marit/$usex</b><br/>";
          
            $nopl = mysql_fetch_array(mysql_query("SELECT signature FROM ibwf_users WHERE id='".$who."'"));
            $sign = parsepm($nopl[0], $sid);
            $textkale = mysql_fetch_array(mysql_query("SELECT textkaler FROM ibwf_users WHERE id='".$who."'"));
            echo "</div><div align=\"center\"><font color=\"$textkale[0]\">$sign</font>";
            if(mypro(getuid_sid($sid), $who))
          {
          
            echo "&nbsp;<a href=\"index.php?action=ucap&amp;sid=$sid\">[e]</a>";
          }else{
          echo "";
          }
          echo "</div>";
              $private = mysql_fetch_array(mysql_query("SELECT private FROM ibwf_users WHERE id='".$who."'"));
            if(($private[0]=="1")||(arebuds($uid, $who))||(mypro(getuid_sid($sid), $who))||(ismod($uid))
          )
          {
          
            $random = mysql_fetch_array(mysql_query("SELECT filename FROM ibwf_gallery WHERE uid='".$who."' ORDER BY RAND() LIMIT 2"));
            $rando = mysql_fetch_array(mysql_query("SELECT filename FROM ibwf_gallery WHERE uid='".$who."' ORDER BY RAND() LIMIT 2"));
            $rand = mysql_fetch_array(mysql_query("SELECT filename FROM ibwf_gallery WHERE uid='".$who."' ORDER BY RAND() LIMIT 2"));
            $ran = mysql_fetch_array(mysql_query("SELECT filename FROM ibwf_gallery WHERE uid='".$who."' ORDER BY RAND() LIMIT 2"));
            $ra = mysql_fetch_array(mysql_query("SELECT filename FROM ibwf_gallery WHERE uid='".$who."' ORDER BY RAND() LIMIT 2"));
            echo "<div align=\"center\"><b>$whonick's Random Gallery</b><br/>";
            echo "<a href=\"../pics/$random[0]\"><img src=\"thumb.php?image=../pics/$random[0]&amp;w=30&amp;h=30&amp;type=jpg\" alt=\"*\"/></a>";
            echo " <a href=\"../pics/$rando[0]\"><img src=\"thumb.php?image=../pics/$rando[0]&amp;w=30&amp;h=30&amp;type=jpg\" alt=\"*\"/></a>";
            echo " <a href=\"../pics/$rand[0]\"><img src=\"thumb.php?image=../pics/$rand[0]&amp;w=30&amp;h=30&amp;type=jpg\" alt=\"*\"/></a>";
            echo " <a href=\"../pics/$ran[0]\"><img src=\"thumb.php?image=../pics/$ran[0]&amp;w=30&amp;h=30&amp;type=jpg\" alt=\"*\"/></a>";
            echo " <a href=\"../pics/$ra[0]\"><img src=\"thumb.php?image=../pics/$ra[0]&amp;w=30&amp;h=30&amp;type=jpg\" alt=\"*\"/></a><br/>";
          
            $countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_gallery WHERE uid='".$who."'"));
            echo "<a href=\"gallery2.php?action=main&amp;who=$who&amp;sid=$sid\">View All Photos($countpics[0])</a><br/></div>";
            
            echo "<div align=\"left\"> <left><small><b>Member Id:</b> $who<br/>";
            echo "<b>Status:</b> ".getstatus($who)."<br/>";
            echo "<b>Special Status:</b> ".getvipstatus($who)."<br/>";
            $loc = mysql_fetch_array(mysql_query("SELECT location FROM ibwf_users WHERE id='".$who."'"));
          
            echo "</div>";
            echo "<div>";
          
          
            $brt = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id='".$who."'"));
            echo "<b>Zodiac:</b> " .getstarsign($brt[0]);
            echo "<br/>";
            echo "<b>Hometown:</b> $loc[0]<br/>";
          $couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE who='".$who."'"));
            if($couple[0]=='1')
            {
          
          
            echo "<b>Couples:</b> ";
            $unick = getnick_uid($couple[2]);
          
            
          
            echo "With  $unick <br/>";
            }
          $couple = mysql_fetch_array(mysql_query("SELECT accept, who, partner FROM couple WHERE partner='".$who."'"));
          if($couple[0]=='1')
            {
          
          
            echo "<b>Couples:</b> ";
            $nick = getnick_uid($couple[1]);
          
            
          
            echo "With $nick <br/>";
            }
            $about = mysql_fetch_array(mysql_query("SELECT about FROM ibwf_users WHERE id='".$who."'"));
          
            $abouts = parsepm($about[0], $sid);
          
            echo "<b>About Me:</b> $abouts<br/>";
          
            $mysite = mysql_fetch_array(mysql_query("SELECT mysite FROM ibwf_users WHERE id='".$who."'"));
          
            echo "<b>My Site:</b> <a href=\"$mysite[0]\">$mysite[0]</a><br/>";
          
            echo "</small></div><div><small>";
            $lst = mysql_fetch_array(mysql_query("SELECT lastplreas FROM ibwf_users WHERE id='".$who."'"));
            if($lst[0]=="")
          {
          echo "";
          }
          else
          {
          echo "<b>Last Plusses Reason:</b> $lst[0]<br/>";
          }
          
            $sql= mysql_fetch_array(mysql_query("SELECT profileview FROM ibwf_users WHERE id='".$who."'"));
            $sql1 =$sql[0]+1;
            mysql_query("UPDATE ibwf_users SET profileview='".$sql1."' WHERE id='".$who."'");
            $sql2=mysql_fetch_array( mysql_query("SELECT profileview FROM ibwf_users WHERE id='".$who."'"));
            echo "<b>Profile view:</b> $sql2[0] times<br/>";
          $lv=getuid_sid($sid);
          $me = getuid_sid($sid);
          if ($me != "$who") 
          {
          mysql_query("INSERT INTO ibwf_lastview SET lastview='".$lv."', whonick='".$who."', ltime='".time()."'");
          }
          $sql= mysql_fetch_array(mysql_query("SELECT lastview,ltime FROM ibwf_lastview WHERE whonick='".$who."'ORDER BY ltime DESC LIMIT 1"));
          $a = getuid_sid($sql[0]);
            $tm = time();
            $timeout = $tm - 86400; //time out = 1 day
            mysql_query("DELETE FROM ibwf_lastview WHERE ltime <'".$timeout."'");
          $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_lastview WHERE whonick='".$who."'"));
          echo "<b>Today Viewer:</b> <a href=\"online.php?action=10pv&amp;who=$who&amp;sid=$sid\">$noi[0]</a><br/>";
            $nopl = mysql_fetch_array(mysql_query("SELECT place FROM ibwf_online WHERE userid='".$who."'"));
            echo "<b>Lokasi:</b> $nopl[0]<br/>";
            $nopl = mysql_fetch_array(mysql_query("SELECT browserm FROM ibwf_users WHERE id='".$who."'"));
            echo "<b>Browser:</b> $nopl[0]<br/>";
            if(ismod(getuid_sid($sid)))
            {
            $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'"));
            echo "<b>Ip:</b> <a href=\"lists.php?action=byip&amp;sid=$sid&amp;who=$who\">$uipadd[0]</a><br/>";
            }
          
            echo "</small></div><div><small>";
          
          
          $me = getuid_sid($sid);
            if(mypro(getuid_sid($sid), $who))
          {
            echo "<a href=\"index.php?action=style&amp;sid=$sid\">Edit Style</a><br/>";
          
            echo "<a href=\"pro5.php?action=propass&amp;sid=$sid\">Edit Profile</a><br/>";
          
              $priv = mysql_fetch_array(mysql_query("SELECT private FROM ibwf_users WHERE id='".$uid."'"));
          if($priv[0]=="1")
          {
            echo "<a href=\"genproc.php?action=private2&amp;sid=$sid\">Private Profile</a><br/>";
          }
          else
          {
            echo "<a href=\"genproc.php?action=private1&amp;sid=$sid\">Normal Profile</a><br/>";
          }
          
          
          }else{
          echo "";
          }
            $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogs WHERE bowner='".$who."'"));
          
          
            if(budres($uid, $who)==0)
            {
              echo "<a href=\"genproc.php?action=bud&amp;who=$who&amp;sid=$sid&amp;todo=add\">Add as Friends</a><br/>";
            }else if(budres($uid, $who)==1)
            {
              echo "(Queued Buddy Request)<br/>";
            }else if(budres($uid, $who)==2)
            {
              echo "<a href=\"genproc.php?action=bud&amp;who=$who&amp;sid=$sid&amp;todo=del\">Del Friends</a><br/>";
            }
            if (arebuds($uid, $who))
            {
            echo "<a href=\"inbox.php?action=sendpopup&amp;who=$who&amp;sid=$sid\">Send Popup</a><br/>";
            echo "<a href=\"inbox.php?action=sendmmsg&amp;who=$who&amp;sid=$sid\">Send Funbox</a><br/>";
            }
            echo "<a href=\"inbox.php?action=sendpm&amp;who=$who&amp;sid=$sid\">Send Message</a><br/>";
            echo "<a href=\"index.php?action=more&amp;who=$who&amp;sid=$sid\">More Information</a><br/>";
            echo "<a href=\"index.php?action=page&amp;who=$who&amp;sid=$sid\">$whonick Pages</a><br>";
          if($noi[0]>0)
          {
            echo "<a href=\"lists.php?action=blogs&amp;who=$who&amp;sid=$sid\">$whonick Blogs($noi[0])</a><br/>";
          }
           $noi2 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_uploads WHERE uid='".$who."'"));
          if($noi2[0]>0)
          {
            echo "<a href=\"fshare.php?action=allup&amp;who=$who&amp;sid=$sid\">$whonick Files($noi2[0])</a><br>";
          }
           $noi3 = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_uploads2 WHERE uid='".$who."'"));
          if($noi3[0]>0)
          {
            echo "<a href=\"fshare.php?action=allup2&amp;who=$who&amp;sid=$sid\">$whonick Files V2($noi3[0])</a><br/>";
          }
          
            echo "</small></div>";
            $vid = mysql_fetch_array(mysql_query("SELECT say FROM ibwf_users WHERE id='".$who."'"));
            $vide = "$vid[0]";
            if(($vide=="nothing to say")||($vide==""))
            {
            echo "";
            }
          else
            {
            echo "<div align=\"center\">";
            echo "<b>$whonick's Media Boxs</b><br/>";
            echo "<embed src=\"../uploaded2/data/$vide\" height=\"100\" width=\"100\" loop=\"100\"/>";
            echo "</div>";
            }
          if($themes[2]=="")
          {
          
              echo "";
          
          }
          else
          {
             echo "<div align=\"center\"><embed src=\"../uploaded2/data/$themes[2]\" height=\"30\" width=\"30\" hidden=\"false\" loop=\"50\"/></embed><br/>";
             echo "$themes[2]</div>";
          }
          
              if($page=="" || $page<=0)$page=1;
              $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_gbook WHERE gbowner='".$who."'"));
              $num_items = $noi[0]; //changable
              $items_per_page= 3;
              $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 gbowner, gbsigner, gbmsg, dtime, id FROM ibwf_gbook WHERE gbowner='".$who."' ORDER BY dtime DESC LIMIT $limit_start, $items_per_page";
          
              echo "<div class=\"CM\" <left><b>Comments</b></div>";
              $items = mysql_query($sql);
              echo mysql_error();
              if(mysql_num_rows($items)>0)
              {
              while ($item = mysql_fetch_array($items))
              {
                $snick = getnick_uid($item[1]);
          
            $avlinkgb = getavatar($item[1]);
            if($avlinkgb=="")
            {
            $fotogb = "<img src=\"thumb.php?image=nopics.gif&amp;w=30&amp;h=30&amp;type=jpg\" alt=\"avatars\"/>";
            }else{
            $fotogb = "<img src=\"thumb.php?image=..$avlinkgb&amp;w=30&amp;h=30&amp;type=jpg\" alt=\"avatars\"/>";
            }
              
                    echo "<div align=\"left\"><small>$fotogb<a href=\"index.php?action=viewuser&amp;who=$item[1]&amp;sid=$sid\">$snick</a><br/>";
                $bs = date("d/m/y-h:ia",$item[3]);
                if(candelgb($uid, $item[4]))
                {
                  $delnk = "<a href=\"genproc.php?action=delfgb&amp;sid=$sid&amp;mid=$item[4]\">[x]</a>";
                }else{
                  $delnk = "";
                }
                $text = parsepm($item[2], $sid);
                echo "$text<br/>$bs $delnk</small><br/></div>";
              }
              }
             $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_gbook WHERE gbowner='".$who."'"));
            echo "<div class=\"MH\" <left><small><a href=\"lists.php?action=gbook&amp;who=$who&amp;sid=$sid\">View all ($noi[0])</a></small> ";
              if(cansigngb($uid, $who))
              {
              echo "<small>| <a href=\"index.php?action=signgb&amp;sid=$sid&amp;who=$who\">Post Comment</a></small><br/>";
              echo "<br/><form action=\"genproc.php?action=signgb&amp;sid=$sid\" method=\"post\">";
              echo "<input type=\"hidden\" name=\"who\" Value=\"$who\">";
          $show = mysql_fetch_array(mysql_query("SELECT icons FROM ibwf_users WHERE id='".$uid."'"));
          if($show[0]==0)
          {
              echo "<textarea name=\"msgtxt\" rows=\"3\" cols=\"25\" maxlength=\"500\"/></textarea><br/>";
          }
          else
          {
              echo "<input type=\"text\" name=\"msgtxt\" maxlength=\"500\"/><br/>";
          }
             echo "<input type=\"Submit\" name=\"Add\" Value=\"Post Comment\"></form>";
               }
              echo "</div>";
            echo "<div align=\"center\">";
            echo "<b>$whonick's Friends</b><br/>";
              if($page=="" || $page<=0)$page=1;
              $num_items = getnbuds($who); //changable
              $items_per_page= 10;
              $num_pages = ceil($num_items/$items_per_page);
              if(($page>$num_pages)&&$page!=1)$page= $num_pages;
              $limit_start = ($page-1)*$items_per_page;
          
              //changable sql
                  $sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid='".$who."' OR b.tid='".$who."') AND b.agreed='1' AND a.id!='".$who."' GROUP BY 1,2  ORDER BY a.lastact DESC LIMIT $limit_start, $items_per_page";
          
          
              $items = mysql_query($sql);
              echo mysql_error();
              if(mysql_num_rows($items)>0)
              {
              while ($item = mysql_fetch_array($items))
              {
                  
                  $avlink = getavatar($item[2]);
            if($avlink=="")
            {
            $ava = "<img src=\"thumb.php?image=nopics.gif&amp;w=30&amp;h=30&amp;type=jpg\" alt=\"$item[1]\"/>";
            }else{
            $ava = "<img src=\"thumb.php?image=..$avlink&amp;w=30&amp;h=30&amp;type=jpg\" alt=\"$item[1]\"/>";
            }
                $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$ava</a>";
                echo "$lnk&nbsp;";
              }
              }
          
            echo "<br/><a href=\"lists.php?action=friends&amp;who=$who&amp;sid=$sid\">More ".getnick_uid($who)." Friends(".getnbuds($who).")</a>";
            echo "</div>";
          
            }else{
            echo "<div align=\"center\">";
            echo "Profile Is Private!<br/>";
            echo "<a href=\"genproc.php?action=bud&amp;who=$who&amp;sid=$sid&amp;todo=add\"><b>Add as Friends</b></a><br/>";
            echo "</div>";
            }
            echo "<div align=\"left\">";
             }else{
               echo "<img src=\"../images/notok.gif\" alt=\"X\"/> Member dos not exist<br/>";
             }
               if($lastloc=="cht"){
            echo "»<a href=\"chat.php?sid=$sid&amp;rid=$rid\">Back to $rname</a><br/>"; 
            $tmsg = getpmcount(getuid_sid($sid));
            $umsg = getunreadpm(getuid_sid($sid));
                      if ($umsg[0] > 0) {
            echo "»<a href=\"inbox.php?action=folderunread&amp;sid=$sid\">MailBox($umsg)</a><br/>";
                      } else {
            echo "»<a href=\"inbox.php?action=main&amp;sid=$sid\">MailBox($umsg)</a><br/>";
                      }
            echo forumlink($sid);
            echo "»<a href=\"lists.php?action=buds&amp;sid=$sid\">Friends</a><br/>";
            echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"home\"/>Home Page</a>";    
            echo "</div>";
          include("footer.php");
            echo "</body>";
            }else{
            $tmsg = getpmcount(getuid_sid($sid));
            $umsg = getunreadpm(getuid_sid($sid));
                      if ($umsg[0] > 0) {
            echo "»<a href=\"inbox.php?action=folderunread&amp;sid=$sid\">MailBox($umsg)</a><br/>";
                      } else {
            echo "»<a href=\"inbox.php?action=main&amp;sid=$sid\">MailBox($umsg)</a><br/>";
                      }
            echo forumlink($sid);
            echo "»<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$uid\">My Profile</a><br/>";
            echo "»<a href=\"lists.php?action=buds&amp;sid=$sid\">Friends</a><br/>";
            echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"home\"/>Home Page</a>";    
            echo "</div>";
          include("footer.php");
            echo "</body>";
            }
          }

          bold words are the found error
          Last edited by wapmetal; 03.04.10, 09:48.
          com site: http://vampist.net
          download site: http://wapdloads.net
          fb: http://www.facebook.com/pmplx

          Comment


            #6
            Dnt undastand ur english. Ima review d code nw. Wats d error line?

            Comment


              #7
              Code:
              Notice: Undefined variable: who in /home/site/public_html/adult/web/index.php on line 634
              
              Notice: Undefined index: lstloc in /home/site/public_html/adult/web/index.php on line 658
              
              Notice: Undefined variable: who in /home/site/public_html/adult/web/index.php on line 664
              
              Notice: Undefined index: mnick in /home/site/public_html/adult/web/index.php on line 666

              declaration is not working hehe


              so when it happens code is not working and i get else statements which is " Member dos not exist"


              sorry for the english man!
              Last edited by wapmetal; 03.04.10, 10:13.
              com site: http://vampist.net
              download site: http://wapdloads.net
              fb: http://www.facebook.com/pmplx

              Comment


                #8
                is there other way to solve this? not just hidding these errors?
                com site: http://vampist.net
                download site: http://wapdloads.net
                fb: http://www.facebook.com/pmplx

                Comment


                  #9
                  Okay i spot ur problem. Um ima just explain so u can help urself debug next time.

                  1st error: Undefined variable who. . .
                  The error occurs when you are trying to assign an undefined variable. In ur case its close to dat line.
                  Code:
                  wrong:
                  $nix = getnick_uid($who);
                  
                  correct:
                  $who = (int) $_GET['who'];
                  $nix = getnick_uid($who);
                  2nd error: Undefined index lstloc. Usually when the requested array index is nt found. In ur case, the $_GET array doesnt contain d lstloc index. You can fix it in the url e.g &lstloc=value or beta stil, like dis:
                  Code:
                  $lstloc = isset($_GET['lstloc']) ? $_GET['lstloc'] : NULL;
                  $lastloc = cleanQuery($lstloc);
                  3rd error: undefined var who. Same as 1st error. Solving error 1 will fix it.

                  4th error. Another undefined array index. This time in the $_POST array. Solve dis by:
                  PHP Code:
                  if(empty($who)){
                  $mnick = isset($_POST['mnick']) ? $_POST['mnick'] : NULL;
                  /* if(empty($who)) is a beta way of writing if($who == "" || $who == 0) */ 

                  Comment


                    #10
                    ok i will try hehe but when i install it on another hosting ,codes work fine
                    com site: http://vampist.net
                    download site: http://wapdloads.net
                    fb: http://www.facebook.com/pmplx

                    Comment


                      #11
                      Dats cuz they myt ave E NOTICE off by default.

                      Comment


                        #12
                        damn it works ! hehe

                        i am getting hard with my site it seems i need to put that in every error that i find like that damn!


                        thanks to you!
                        com site: http://vampist.net
                        download site: http://wapdloads.net
                        fb: http://www.facebook.com/pmplx

                        Comment


                          #13
                          Originally posted by mobileGIGS View Post
                          Dats cuz they myt ave E NOTICE off by default.

                          then can i turn it ON?
                          com site: http://vampist.net
                          download site: http://wapdloads.net
                          fb: http://www.facebook.com/pmplx

                          Comment


                            #14
                            Yea. error_reporting() function. Check php.net

                            Comment


                              #15
                              i try like that in php.ini but it just hide the error codes like my problem error
                              com site: http://vampist.net
                              download site: http://wapdloads.net
                              fb: http://www.facebook.com/pmplx

                              Comment

                              Working...
                              X