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

Started on the old forum in July 2009 · view the original in the archive · old links redirect here

8 replies · 451 views · started 17 years ago · 1 min read

4 participants
bijaybd Developer · 178 posts #1

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

the line which i am having problem is : 09:00»\03hi

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.

bijaybd Developer · 178 posts #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

shad0w Developer · 119 posts #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

something else Fellow · 2,296 posts #5

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

the line which i am having problem is : 09:00»\03hi

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 \ ? 🤨

bijaybd Developer · 178 posts #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\

bijaybd Developer · 178 posts #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

CreativityKills Lead · 833 posts #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.

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close