cazconv Posted April 20, 2010 Share Posted April 20, 2010 Hi, Trying to get my page to validate however it says "unescaped & which should be written as &" The ampersands are in the database which im not allowed to change (its an assignment) I tried strtoupper($row['variable']); but the errors still occured, is there any way to convert the ampersands without changing the database, its only for select statements not updates or inserts Link to comment https://forums.phpfreaks.com/topic/199173-ampersands-in-select-statement/ Share on other sites More sharing options...
Ken2k7 Posted April 20, 2010 Share Posted April 20, 2010 You can use str_replace Link to comment https://forums.phpfreaks.com/topic/199173-ampersands-in-select-statement/#findComment-1045361 Share on other sites More sharing options...
Mchl Posted April 20, 2010 Share Posted April 20, 2010 Use htmlentities Link to comment https://forums.phpfreaks.com/topic/199173-ampersands-in-select-statement/#findComment-1045383 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.