English 中文(简体)
phpmyadmin将â EuroTM保留到我的Sql数据库,而不是从面包所取。
原标题:phpmyadmin is saving ’ to mysql database instead of from cakephp

我从面包店到我的餐厅向数据库储蓄。 当我把数据与phpmyadmin相比较时,“driver s”作为“driverâ EuroTMs”加以保存。 是否有办法将这些条目作为正常的越狱性质加以拯救? 我认为,在他们甚至进入数据库之前,他们会照顾他们。 而且,如果我不得不继续这样做,我如何在把他们撤回数据库时替他们替罪羊?

CREATE TABLE IF NOT EXISTS `tablename` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `start` int(20) NOT NULL,
  `stop` int(20) NOT NULL,
  `completed` int(1) unsigned NOT NULL,
  `score` varchar(10) default NULL,
  `fc_module_id` int(11) unsigned NOT NULL,
  `fc_section_id` int(11) unsigned NOT NULL,
  `user_id` int(11) unsigned NOT NULL,
  `selections` text character set latin1 collate latin1_bin NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1035 ;

“选举”栏是给我造成麻烦的一栏。 在我审判了utf8_bin之后,这只是我所尝试的最新故事。 但是,实际上,我刚刚在char子上gue。

最佳回答

结 论

 encoding  =>  utf8 ,

为您的数据库设置app/config/database.php

问题回答

问题不在于其特性没有得到很好的保护,而是认为,你的Sandmyadmin大概在另一个编码中显示它(或许可以说是微小1)。

你们应该有在正确编码中体现特征的问题。

这很可能只是一个真正的单一引文,这应当体现在微粒1和utf-8编码中。

在更换了你的Sitomyadmin,使其不再以微薄1(因为你的特性不是微小的1)显示它之后,也更新了你给utf-8的表格。 否则,你可能会遇到麻烦:你一栏假设你的案文为“tin1”(Ccharacter set latin1colate latin1_bin),但该栏含有“utf-8”数据。





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签