I was working on a simple PHP form that would take in a phone number and other fields and add it to the database and eventually display it on the screen. As I was testing this form, I noticed that the phone number was getting added to the database but was not showing up on the screen. It seemed very weird. I could not see the phone number in PHPMyAdmin either. It showed up when I wanted to edit a record.
To make sure I did not have an error in my PHP code, I created a simple test.html with the following code in it:
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
Phone Number: 123-234-3456
Another Phone Number: 980-989-9989
The first phone number did not show up but the second one was fine. If I replaced the dashes in the phone number with spaces, Continue reading