View previous topic :: View next topic |
Author |
Message |
Clapper Apprentice
Joined: 29 Sep 2003 Posts: 177
|
Posted: Fri Oct 10, 2003 3:16 pm Post subject: Mysql / PHP - ouput stripping data between "<" |
|
|
Hello,
I am pulling log info out of a Mysql database, and my php output looks like this:
------
postfix/qmgr[15198]: 675B11F508: from=, size=417, nrcpt=1 (queue active)
------
however, in the database, the data looks like this:
------
postfix/qmgr[15198]: 675B11F508: from=<root@hiddenworld.net>, size=417, nrcpt=1 (queue active)
------
Obviously, the php script is removing the content between the "< >" characters.
What is the best way to combat this? |
|
Back to top |
|
|
Jorito n00b
Joined: 23 Mar 2003 Posts: 7 Location: The Netherlands
|
Posted: Sat Oct 11, 2003 6:07 pm Post subject: |
|
|
probably it's your browser that sees the <> stuff as HTML, doesn't understand it, and then ignore it... If this is the case, you should escape the <> or replace them with the correct HTML entities (& for < and & for >) with str_replace or something...
If this isn't the case, make sure your PHP doesn't do any strip_tags things _________________ This signature intentionally left blank. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|