this time need a very urgent help having much problem can't fix

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

    this time need a very urgent help having much problem can't fix

    XML parsing failed: syntax error (Line: 8, Character: 143)

    the line which i am having problem is :
    09:00»\03hi<br/></small>

    the sign i am having problem is >>> \

    but when i try to replace it
    if($dbmsg == "\") $dbmsg=str_replace(''.$dbmsg.'','@',$dbmsg);

    its showing me error so anybody can fix it.

    but when i send \ to my chat it shows no error even i tried by &#47; also but still no errors
    is there any way to put this sign in other way &#47; or \

    please urgent help needed.
    Last edited by bijaybd; 29.07.09, 15:11.

    #2
    Don't realy understand .. Post a part of the page where you get error ...
    whatmp3.name - search mp3 on mobile

    Comment


      #3
      really sorry but i deleted all the messages . now i can explain to you a user send a message like

      user>>> msg ??>>>> \03hi
      this is the meesage which showing error in opera and all browser is >>>
      XML parsing failed: syntax error (Line: 8, Character: 143)

      but how this is happening i don't know just for \03 one what charactor they are using.
      if i send \ in my chat it send \\ so no problem at all. i have tried by so many ways but can't make it work also can replace it when >>>

      if($dbmsg == "\") $dbmsg=str_replace(''.$dbmsg.'','@',$dbmsg);

      it also showing error i don't know what is actually or what html charator they are sending which is replace by \03

      Comment


        #4
        Don't realy understand .. Post a part of the page where you get error ... !!!

        Also try using function unhtmlspecialchars2( $string )
        whatmp3.name - search mp3 on mobile

        Comment


          #5
          Originally posted by bijaybd View Post
          XML parsing failed: syntax error (Line: 8, Character: 143)

          the line which i am having problem is :
          09:00»\03hi<br/></small>

          the sign i am having problem is >>> \

          but when i try to replace it
          if($dbmsg == "\") $dbmsg=str_replace(''.$dbmsg.'','@',$dbmsg);

          its showing me error so anybody can fix it.

          but when i send \ to my chat it shows no error even i tried by / also but still no errors
          is there any way to put this sign in other way / or \

          please urgent help needed.
          Dont know what your trying to do but
          its either should be: if($dbmsg=="")//// but if $dbmsg=="" then you wouldnt need to replace the string so in that case it might be if($dbmsg!="")
          or
          if($dbmsg=="&#9 2;") //(no space between 9 and 2)
          or
          if($dbmsg=='\')

          but why would u want $dbmsg as \ ?
          Last edited by something else; 30.07.09, 00:33.

          Comment


            #6
            a user is posting a message and message = $dbmsg the message i get from the user is = 03\ and when he send this message to the chat i get error but when i send this 03\ i don't get any error the meesssage replace too 03\ so may be the user is using any html charactor which converted to 03\

            Comment


              #7
              Why not use a differnt symbol then lol

              Comment


                #8
                i don't know what html charactor or symbol they use but as i know it is like something o type of things when the user put that symbol or html charactor in the chat all opera get errors but not the mobile phones

                Comment


                  #9
                  Thats maybe because u didnt escape it. Try
                  mysql_real_string_escape(htmlentities("\"))
                  but wth wud u need a backslash? O.o werent u d same dude dat wanted "wait for 10 SECONDS after registration?" haha, try wot i gave u. Use it when outputting.

                  Comment

                  Working...
                  X