Forum Moderators: open

Message Too Old, No Replies

Storing & in database

Should it be & or just &

         

wheelie34

3:57 pm on May 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi

For example a company name widget & co currently I store it like

widget_&_co but when I call it out with PHP it only goes as far as widget_

Should I convert the input to & or how would I handle it?

physics

5:38 pm on May 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try processing the text through htmlspecialchars() before displaying it:

[us.php.net...]