Unread PM From You Got Errors

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

    Unread PM From You Got Errors

    guys please kindly post the right code to add in core.php regarding getunreadpm($uid,$you) I use the code by rukiya here it is...

    /////////////////////Get unread number of pms form you

    function getunreadpm($uid,$you)
    {
    $nopm = mysql_fetch_array(mysql_query("SELECT COUNT (id) FROM ibwf_private WHERE touid='".$uid."' AND byuid='".$you."'AND unread='1'"));
    return $nopm[0];
    }

    The problem is when i add that to core.php error occurs and it says

    unable to redeclaire getunreadpm() already exist in line etc,etc..

    What code to be exactly i have to add in my existing getunreadpm file in core.php to enable this function works in members profile..


    echo "<b><small>Unread PMs:</small></b> ".getunreadpm($who)." , ".getunreadpm($who,$uid)." from you<br/>";

    #2
    Originally posted by l0rdrayven View Post
    guys please kindly post the right code to add in core.php regarding getunreadpm($uid,$you) I use the code by rukiya here it is...

    /////////////////////Get unread number of pms form you

    function getunreadpm($uid,$you)
    {
    $nopm = mysql_fetch_array(mysql_query("SELECT COUNT (id) FROM ibwf_private WHERE touid='".$uid."' AND byuid='".$you."'AND unread='1'"));
    return $nopm[0];
    }

    The problem is when i add that to core.php error occurs and it says

    unable to redeclaire getunreadpm() already exist in line etc,etc..

    What code to be exactly i have to add in my existing getunreadpm file in core.php to enable this function works in members profile..


    echo "<b><small>Unread PMs:</small></b> ".getunreadpm($who)." , ".getunreadpm($who,$uid)." from you<br/>";
    check the getunreadpm function in your core.php..Maybe it's already existing there and you duplicated it..
    My Blog: http://jhommark.blogspot.com
    My Facebook: http://www.facebook.com/jhommark
    My Official Site: http://www.undergroundweb.tk
    My Community Site: http://undergroundwap.xtreemhost.com

    Comment


      #3
      yah it is my friend then how can i add this function? Do i have to edit the getunreadpm function and how? Pls mates tell me the exact code.

      Comment


        #4
        this part tags aren't closed as they opened
        PHP Code:
        <b><small>Unread PMs:</small></b
        that isnt valid WML!
        PHP Code:
        <b><small>Unread PMs:</b></small
        Nous Ne Dansos Pas, Nous Sommes Le Danse.!

        Comment


          #5
          Originally posted by Vayne View Post
          this part tags aren't closed as they opened
          PHP Code:
          <b><small>Unread PMs:</small></b
          that isnt valid WML!
          PHP Code:
          <b><small>Unread PMs:</b></small
          i think, there's no problem with that in wml..whether the first one to be closed is the bold tag then after is small..Important is to close them..That's it..
          Last edited by kiLLeR-eyEd_14; 23.07.09, 14:52.
          My Blog: http://jhommark.blogspot.com
          My Facebook: http://www.facebook.com/jhommark
          My Official Site: http://www.undergroundweb.tk
          My Community Site: http://undergroundwap.xtreemhost.com

          Comment


            #6
            This the valid one in my script

            <b><small>Unread PMs:</small></b>

            And this is the invalid one

            <b><small>Unread PMs</b></small>

            Comment


              #7
              Originally posted by l0rdrayven View Post
              This the valid one in my script

              <b><small>Unread PMs:</small></b>

              And this is the invalid one

              <b><small>Unread PMs</b></small>
              you are sure?
              Nous Ne Dansos Pas, Nous Sommes Le Danse.!

              Comment


                #8
                Originally posted by l0rdrayven View Post
                guys please kindly post the right code to add in core.php regarding getunreadpm($uid,$you) I use the code by rukiya here it is...

                /////////////////////Get unread number of pms form you

                function getunreadpm($uid,$you)
                {
                $nopm = mysql_fetch_array(mysql_query("SELECT COUNT (id) FROM ibwf_private WHERE touid='".$uid."' AND byuid='".$you."'AND unread='1'"));
                return $nopm[0];
                }

                The problem is when i add that to core.php error occurs and it says

                unable to redeclaire getunreadpm() already exist in line etc,etc..

                What code to be exactly i have to add in my existing getunreadpm file in core.php to enable this function works in members profile..


                echo "<b><small>Unread PMs:</small></b> ".getunreadpm($who)." , ".getunreadpm($who,$uid)." from you<br/>";
                try this:

                function getunreadpm($uid){

                $nopm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$uid."' AND unread='1'"));

                return $nopm[0];
                LDSWAPWORLD sigpic
                site closed.
                im busy with other things in life like facebook , send me PM so i can add you
                www.pinoySG.com

                don't ask for help if you're not even helping yourself!
                i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.


                Comment


                  #9
                  Originally posted by capofret View Post
                  try this:

                  function getunreadpm($uid){

                  $nopm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$uid."' AND unread='1'"));

                  return $nopm[0];
                  Thats the code already in my core.php then how to add the function byuid = .'"$you.'". In that line?

                  Comment


                    #10
                    Originally posted by l0rdrayven View Post
                    Thats the code already in my core.php then how to add the function byuid = .'"$you.'". In that line?

                    function getunreadpm($uid,$byuid)
                    {
                    $nopm = mysql_fetch_array(mysql_query("SELECT COUNT (*) FROM ibwf_private WHERE touid='".$uid."' AND byuid='".$byuid."'AND unread='1'"));
                    return $nopm[0];
                    }
                    LDSWAPWORLD sigpic
                    site closed.
                    im busy with other things in life like facebook , send me PM so i can add you
                    www.pinoySG.com

                    don't ask for help if you're not even helping yourself!
                    i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.


                    Comment


                      #11
                      it cause error in my inbox.anyway thanks for the help.i already got the right code.Theres no need to edit or add code in core.php

                      Comment


                        #12
                        Originally posted by kiLLeR-eyEd_14 View Post
                        Originally posted by Vayne View Post
                        this part tags aren't closed as they opened
                        PHP Code:
                        <b><small>Unread PMs:</small></b
                        that isnt valid WML!
                        PHP Code:
                        <b><small>Unread PMs:</b></small
                        i think, there's no problem with that in wml..whether the first one to be closed is the bold tag then after is small..Important is to close them..That's it..
                        @kiLLeR-eyEd_14 very wrong !
                        only HTML would alowe such nonsense...(but it wont be valid code!)
                        meanwhile WML and also XHTML not...

                        Code:
                        <tag1><tag2><tag3>THIS IS VERY WRONG AND CAN AND WILL CAUSE PROBLEMS!</tag1></tag2></TAG3>
                        Code:
                        <tag1><tag2><tag3>THIS IS CORRECT AND VALID BY W3C</tag3></tag2></tag1>
                        It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                        ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                        ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                        キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                        Comment

                        Working...
                        X