echo "Business Name: <input name='businessName' type='text' maxlength=50 value='" . $merchant['businessName'] . "'></td></tr>";
This statement causes the data in a field to be cut-off if the business' name contains a single-quote. This is expected... Using the addslashes() function causes the business' name to be cutoff after the added slash. This part is unexpected to me... The single-quotes aren't being properly escaped.
IE:
Database contains: Red's Hot Dogs
Without addslashes: Red
With addslashes: Red\
Switching to double quotes solves the issue, but then produces the same problem when a business' name contains a double-quote. How can I get it to display the full business name inside of the field?