数据库列中的数据未显示但存在

时间:2014-05-20 21:21:14

标签: mysql

我今天遇到这个问题我感到困惑,问题是当我在我的一个名为tbl_template_log的数据库表中插入数据时,它存在,但它没有在浏览模式下显示我正在使用phpMyAdmin。

但是当我点击“编辑”时,数据显示正确...

如果不向我询问其他详细信息,希望我的问题是可以理解的。

这是我的数据在浏览模式下的显示方式:

http://i60.tinypic.com/2jdrmeg.jpg

在运行此查询“SELECT * FROM tbl_template_log”之后,user_id中的数据实际存在的证据在此处:

http://i59.tinypic.com/2wg80sp.jpg

tbl_template_log结构:

CREATE TABLE IF NOT EXISTS `tbl_template_log` (
  `templog_id` int(6) NOT NULL AUTO_INCREMENT,
  `user_id` int(6) DEFAULT NULL,
  `temp_id` int(6) DEFAULT NULL,
  `savetemp_id` int(6) DEFAULT NULL,
  `send_date` datetime NOT NULL,
  `send_to` varchar(254) NOT NULL,
  `email_send` text NOT NULL,
  PRIMARY KEY (`templog_id`),
  KEY `tbl_user.user_id` (`user_id`,`temp_id`,`savetemp_id`),
  KEY `tbl_template.temp_id` (`temp_id`),
  KEY `tbl_saved_template.savetemp_id` (`savetemp_id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=85 ;

--
-- Dumping data for table `tbl_template_log`
--

INSERT INTO `tbl_template_log` (`templog_id`, `user_id`, `temp_id`, `savetemp_id`, `send_date`, `send_to`, `email_send`) VALUES
(83, 77, NULL, NULL, '2014-05-20 22:08:25', 'tomasz@onetwotrade.com', '<html blahh blahh>'),

--
-- Constraints for table `tbl_template_log`
--
ALTER TABLE `tbl_template_log`
  ADD CONSTRAINT `tbl_template_log_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `tbl_user` (`user_id`),
  ADD CONSTRAINT `tbl_template_log_ibfk_2` FOREIGN KEY (`temp_id`) REFERENCES `tbl_template` (`temp_id`),
  ADD CONSTRAINT `tbl_template_log_ibfk_3` FOREIGN KEY (`savetemp_id`) REFERENCES `tbl_saved_template` (`savedtemp_id`);

2 个答案:

答案 0 :(得分:1)

我发现了一个问题,首先感谢所有试图帮助我的人,有趣的是我的Safari浏览器问题:o,我清除了浏览历史记录,Catche&amp;饼干然后一切都突然开始工作

答案 1 :(得分:0)

在我的管理员PHP中一直向下滚动并将Show 30 row(s)值更改为100或500或者您想要的数量。

您的价值很可能是在另一个页面上。

enter image description here