01-10-2018, 08:22 AM
Hi,
I have a 'trading name' input box and if the '&' symbol is entered, this is written to the database as '& amp;'.
I then run a check that if the current value doesn't match what's in the DB, update the entry.
Currently it always thinks that they don't match (even though the do if I dump the variable).
If I update the & amp; to &; in phpMyAdmin the issue goes away.
Is there a way I can force either the insert or update classes to write it as & rather than '& amp;'?
Hope that makes sense,
Cheers
I have a 'trading name' input box and if the '&' symbol is entered, this is written to the database as '& amp;'.
I then run a check that if the current value doesn't match what's in the DB, update the entry.
Currently it always thinks that they don't match (even though the do if I dump the variable).
If I update the & amp; to &; in phpMyAdmin the issue goes away.
Is there a way I can force either the insert or update classes to write it as & rather than '& amp;'?
Hope that makes sense,
Cheers