just display it as text. i.e. I receive 「END; = "SELECT M.login_name, M.nickname, M.sex, N.money, N.rank, N.rank_point FROM userbasicinfo M, usergameinfo N WHERE M.login_name = \"cowcow\" AND M.user_id = N.user_id;"; = mysql_query(); while(list(, , , , , )=mysql_fetch_row()){ echo ; echo ; echo ; } echo<<」 as result.
I am not sure whether I can embed php code after <div> tag. As I embed in other places, I can get the normal result. Unfortunately, I must put the above code in that place. So any solution to that? Thank you. I have tried to pass the result to xml and use xls to format it, it fails again.

Re: Problem of embedding php code after html tag <div>

seems like your Heredoc syntax gets messed up somewhere. I’d put a space between echo and <<<END first to see if that's the reason.

Edit: line #243, remove the spaces before END; that’s invalid.

Thanks. The bug is really caused by having spaces in front of "END;".

Besides using heredoc syntax, I would also like to ask what other methods I can use to output a string with multiple lines and lots of escape characters?

One way I like to do it especially for HTML syntax is to put the HTML in a file by itself and places where I want to replace data I place markers there. Then I replace the markers with my desired text.