0

I would need your help on this one because I can't find the solution myself:

I have a project built on cakephp ver 2.5.1. I'm entering data into my database on localhost (MAMP on my macbook; VARCHAR 255 utf8_bin - string being saved: HP) and all strings saved on my localhost appear in numbers (string HP is being saved as 4850).

The funny thing is if I copy that same database and import it on my production server all the strings are correct, HP is HP and not 4850... so I'm guessing I just misconfigured something on localhost...

Any help on the matter will be greatly appreciated!

J.T.
  • 135
  • 11

2 Answers2

1

Try this: in phpmyadmin table display page, click on the '+ Options' link and uncheck "Show binary contents as HEX"

arilia
  • 9,373
  • 2
  • 20
  • 44
0

Check what the column type is in your local host. I'm thinking that you might have created the column as an integer instead of a varchar or text.

Cameron
  • 572
  • 1
  • 3
  • 12