Correct WML

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

    #16
    This is the error im getting

    1: <?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"><wml>
    2: <card id="main" title="Owner Tools"><p align="center"></wml>
    BakGat
    Code:
    class Counter {
    public:
      void Count();
      int  ReadDisplay();
    private:
      int  CurrentCount;
    };








    Back up my hard drive? How do I put it in reverse?
    My Community
    BakGat
    sigpic

    Comment


      #17
      U stil not did what i have told u. be very careful wid ur TAGs. do not use
      Code:
      <p><p></p></p>
      but ths
      Code:
      <p></p><p></p>
      look closely on da script u'l see it

      Comment


        #18
        Ok so I know what you meant by <p> If you open 1 you have to close it.... Did that now I got this

        Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/bakgatm/public_html/wap/ownrproc.php on line 164

        and on line 164 there is this

        if($who=="online")
        BakGat
        Code:
        class Counter {
        public:
          void Count();
          int  ReadDisplay();
        private:
          int  CurrentCount;
        };








        Back up my hard drive? How do I put it in reverse?
        My Community
        BakGat
        sigpic

        Comment


          #19
          Ehh! u did not use
          Code:
          echo "</p>";
          remember ur coding PHP LoL..

          Comment


            #20
            Here's my advice.. read on tutorials about basic WML and basic PHP & MySQL so u cn go further in coding.. :-)

            Comment


              #21
              It is
              Code:
              echo "</p">;
              BakGat
              Code:
              class Counter {
              public:
                void Count();
                int  ReadDisplay();
              private:
                int  CurrentCount;
              };








              Back up my hard drive? How do I put it in reverse?
              My Community
              BakGat
              sigpic

              Comment


                #22
                See u made it
                Code:
                 echo "</p">;
                the right way is this..
                Code:
                echo "</p>";
                ur really not observing

                Comment


                  #23
                  Here's the snippet I see no error....

                  PHP Code:
                  else if($action=="prvtall2")

                  {
                   echo 
                  "<card id=\"main\" title=\"Owner Tools\">";
                  echo 
                  "<p align=\"center\">";

                       echo 
                  "</p>";
                  $who mysql_real_escape_string$_REQUEST["who"] );
                  $pmtou1 mysql_real_escape_string$_REQUEST["pmtou1"] );
                  $byuid getuid_sid($sid);



                  $tm microtime(get_as_float);

                  if(
                  $who=="online")
                  {
                  $lastpm mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
                  echo 
                  "<p>";
                  echo 
                  "<img src=\"../images/check.png\" alt=\"x\"/>";
                  echo 
                  "The Online Members have been sent This Message<br/>";
                  echo 
                  "<a href=\"ownercp.php?action=ownercp&amp;sid=$sid\">»Owner Tools</a>";

                  $pms mysql_query("SELECT userid FROM ibwf_online ");
                  $tm microtime(get_as_float);
                  while(
                  $pm=mysql_fetch_array($pms))
                  {
                  mysql_query("INSERT INTO ibwf_private SET text='Public Anouncment:[br/]".$pmtou1."[br/][i]This message was sent to all online members[/i]', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");

                  }
                  echo 
                  "</p>";
                   echo 
                  "</card>";
                  }


                  BakGat
                  Code:
                  class Counter {
                  public:
                    void Count();
                    int  ReadDisplay();
                  private:
                    int  CurrentCount;
                  };








                  Back up my hard drive? How do I put it in reverse?
                  My Community
                  BakGat
                  sigpic

                  Comment


                    #24
                    Mate im not using PC and ur giving me a headache. i'll go now.. someone else will help u..

                    Comment


                      #25
                      I still cant get this working...... Will some 1 please look into this for me.....

                      Thanx...
                      BakGat
                      Code:
                      class Counter {
                      public:
                        void Count();
                        int  ReadDisplay();
                      private:
                        int  CurrentCount;
                      };








                      Back up my hard drive? How do I put it in reverse?
                      My Community
                      BakGat
                      sigpic

                      Comment


                        #26
                        Code:
                        echo "message: <input name=\"pmtoul\" maxlength=\"60\"/><br/>";
                           
                        echo "select **** haha:<br/><select name=\"who\">";
                        echo "<option value=\"online\">to members</option>";
                          /////echo "<option value=\"2\">to staffs</option>";///////u can add this if u want to add some options to send
                         
                        echo "</select><br/>";
                            echo "<anchor>SUBMIT";
                        echo "<go href=\"ownrproc.php?action=prvtall2&amp;sid=$sid\" method=\"post\">";
                                 echo "<postfield name=\"pmtoul\" value=\"$(pmtoul)\"/>";
                        echo "<postfield name=\"who\" value=\"$(who)\"/>";
                        echo "</go></anchor><br/>-----<br/>";

                        just edit this man i made it for you....
                        Last edited by WereWolveZ; 17.01.10, 13:58.

                        Comment


                          #27
                          Thanx WereWolveZ but it dosnt post the message it's blank in the inbox..... What gives.......
                          BakGat
                          Code:
                          class Counter {
                          public:
                            void Count();
                            int  ReadDisplay();
                          private:
                            int  CurrentCount;
                          };








                          Back up my hard drive? How do I put it in reverse?
                          My Community
                          BakGat
                          sigpic

                          Comment


                            #28
                            post
                            PHP Code:
                            echo mysql_error(); 
                            to see more...
                            Nous Ne Dansos Pas, Nous Sommes Le Danse.!

                            Comment


                              #29
                              PHP Code:
                              else if($action=="prvtall2")

                              {
                               echo 
                              "<card id=\"main\" title=\"Owner Tools\">";
                              echo 
                              "<p align=\"center\">";

                                   echo 
                              "</p>";

                              $who mysql_real_escape_string($_POST["who"] );
                              $pmtou1 mysql_real_escape_string($_POST["pmtou1"] );
                              $who mysql_real_escape_string($_GET["who"] );///if not working try to delete this mate
                              $byuid getuid_sid($sid);


                              $tm microtime(get_as_float);

                              if(
                              $who=="online")
                              {
                              $lastpm mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
                              echo 
                              "<p>";
                              echo 
                              "<img src=\"../images/check.png\" alt=\"x\"/>";
                              echo 
                              "The Online Members have been sent This Message<br/>";
                              echo 
                              "<a href=\"ownercp.php?action=ownercp&amp;sid=$sid\">»Owner Tools</a>";

                              $pms mysql_query("SELECT userid FROM ibwf_online ");
                              $tm microtime(get_as_float);
                              while(
                              $pm=mysql_fetch_array($pms))
                              {
                              mysql_query("INSERT INTO ibwf_private SET text='Public Anouncment:[br/]".$pmtou1."[br/][i]This message was sent to all online members[/i]', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");

                              }
                              echo 
                              "</p>";
                               echo 
                              "</card>";
                              }


                              here you GO mate


                              PHP Code:
                              //////////////////////////PM 2 ALL 
                              else if($action=="toall"

                              addonline(getuid_sid($sid),"Owner Tools",""); 
                                echo 
                              "<card id=\"main\" title=\"Owner Tools\">"
                                echo 
                              "<p align=\"center\">"
                                echo 
                              "<b>Owner Tools</b>"
                                echo 
                              "</p>"
                                echo 
                              "message: <input name=\"pmtou1\" maxlength=\"60\"/><br/>";
                                 
                              echo 
                              "pm to:<br/><select name=\"who\">";
                              echo 
                              "<option value=\"online\">to members</option>";
                                
                              /////echo "<option value=\"2\">to staffs</option>";///////u can add this if u want to add some options to send
                               
                              echo "</select><br/>";
                                  echo 
                              "<anchor>SUBMIT";
                              echo 
                              "<go href=\"ownrproc.php?action=prvtall2&amp;sid=$sid\" method=\"post\">";
                                       echo 
                              "<postfield name=\"pmtou1\" value=\"$(pmtou1)\"/>";
                              echo 
                              "<postfield name=\"who\" value=\"$(who)\"/>";
                              echo 
                              "</go></anchor><br/>-----<br/>";

                              echo 
                              "<p>"
                              echo 
                              "<a href=\"index.php?action=main&amp;sid=$sid\">»Main Menu</a>"
                              echo 
                              "</p></card>"
                                 


                              BTW mate u can use this in xhtml

                              Code:
                              $who = mysql_real_escape_string($_REQUEST["who"] ); 
                              $pmtou1 = mysql_real_escape_string($_REQUEST["pmtou1"] );
                              Last edited by WereWolveZ; 18.01.10, 15:13.

                              Comment


                                #30
                                I see u use REQUEST but ur go href method is POST. i think REQUEST is different from POST ;-)

                                Comment

                                Working...
                                X