Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mysql / PHP - ouput stripping data between "<"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Clapper
Apprentice
Apprentice


Joined: 29 Sep 2003
Posts: 177

PostPosted: Fri Oct 10, 2003 3:16 pm    Post subject: Mysql / PHP - ouput stripping data between "<" Reply with quote

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
View user's profile Send private message
Jorito
n00b
n00b


Joined: 23 Mar 2003
Posts: 7
Location: The Netherlands

PostPosted: Sat Oct 11, 2003 6:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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