我有这个问题,今天发生我感到困惑,问题是,当我插入数据在我的数据库表中的一个名为tbl_template_log,它存在但它不显示浏览模式我正在使用phpMyAdmin。数据库中的数据列没有显示,但存在
但是当我点击“编辑”中的数据显示正确的...
希望我的问题是可以理解的,如果不找我的其他详细信息。
这是我的数据如何显示在浏览模式:
http://i60.tinypic.com/2jdrmeg.jpg
而且,在user_ID的数据运行此查询“SELECT * FROM tbl_template_log
”后确实存在的证据是在这里:
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', '[email protected]', '<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`);
做'SELECT * FROM tbl_template_log'并检查它是否存在。 – Ortix92
嗨thx您的建议,是的,我做到了,数据显示,但为什么它不显示浏览模式...? – user3065962
你确定这不是一个不同的页面吗? – Ortix92