Preserved Topic: PHP include() in MySQL database (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Canada |
posted 02-24-2004 02:53
ok I have quite a peculiar problem. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 02-24-2004 03:04
Nope any code within the results will simply be used as a string. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 02-24-2004 03:14
That is breaking the rules! code: $string = "database query result string"
|
Bipolar (III) Inmate From: Canada |
posted 02-25-2004 02:32
Thanks for the responses. I actually figured out a way, the include(); was including some text from another file that was calling upon a javascript within the html page, so I just made a new function in teh javascript and replaced the include. IT was a quite simple fix after i thought about it. But I learned about htmlentities(); which I am going to integrate into the MySQL writer I have. PHP has so many useful tools . |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 02-25-2004 11:34
I usually invoke html_entities(,ENT_QUOTES) on all data coming from a user site (ie. post, get, cookies) via a loop over the arrays. |