madcrazy1 Posted October 5, 2007 Share Posted October 5, 2007 a user types the ambersand into text field as & the xml page gets updated correctly because the ambersand symbol is correctly formatted in the sql database as & but when user makes a request for that information, it returns the ambersand as a regular ambersand so when user clicks submit again the ambersand gets sent to the database as & and consequently outputs an error to the xml page. I need to know how to return the ambersand from the sql database so it echos & and NOT & thank you Quote Link to comment https://forums.phpfreaks.com/topic/71994-the-amp-ambersand-sign/ Share on other sites More sharing options...
wildteen88 Posted October 5, 2007 Share Posted October 5, 2007 databases will return back the stored value. Databases wont convert text. This most probably your browser. If you want to see the text & in the browser you need to use &. Your browser will parse and & and display &. Quote Link to comment https://forums.phpfreaks.com/topic/71994-the-amp-ambersand-sign/#findComment-362676 Share on other sites More sharing options...
madcrazy1 Posted October 10, 2007 Author Share Posted October 10, 2007 i tried & but this only delays the problem. one edit returns & second edit returns & 3rd edit returns feed error Quote Link to comment https://forums.phpfreaks.com/topic/71994-the-amp-ambersand-sign/#findComment-365942 Share on other sites More sharing options...
fenway Posted October 10, 2007 Share Posted October 10, 2007 Sounds like you're encoding HTML characters... on purpose? Quote Link to comment https://forums.phpfreaks.com/topic/71994-the-amp-ambersand-sign/#findComment-366217 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.