imaster
Новичок
"mysql_query" выдает совсем не то
Помогите разобраться
Есть таблица
CREATE TABLE `pages` (
`Id` int(10) unsigned NOT NULL auto_increment,
`ParentId` int(10) unsigned NOT NULL,
`Children` tinyint(4) unsigned NOT NULL default '0',
`Type` tinyint(4) NOT NULL default '1',
`CreateDate` datetime NOT NULL default '0000-00-00 00:00:00',
`CreateUserId` int(10) NOT NULL default '0',
`ModifyDate` datetime NOT NULL default '0000-00-00 00:00:00',
`ModifyUserId` int(10) NOT NULL default '0',
`Mnemo` varchar(255) NOT NULL default '',
`Name` varchar(255) NOT NULL default '',
`Filename` varchar(255) NOT NULL default '',
`Content` text NOT NULL,
`Description` tinytext NOT NULL,
`IsVisible` tinyint(4) NOT NULL default '1',
PRIMARY KEY (`Id`),
UNIQUE KEY `Mnemo` (`Mnemo`)
) TYPE=MyISAM;
При вставке новой записи, mysql_query возвращает false.
Причем, проблема только с этим запросом, другие запросы работают нормально.
Вот запрос:
INSERT INTO pages (ParentId, Type, CreateDate, CreateUserId, ModifyDate, ModifyUserId, Name, Mnemo, Filename, Content, Description) VALUES ( '0', '1', '2005-10-20 15:16:15', '1', '2005-10-20 15:16:15', '1', 'Моя страница', 'my_page', '', 'Content', 'Desc')
Помогите разобраться
Есть таблица
CREATE TABLE `pages` (
`Id` int(10) unsigned NOT NULL auto_increment,
`ParentId` int(10) unsigned NOT NULL,
`Children` tinyint(4) unsigned NOT NULL default '0',
`Type` tinyint(4) NOT NULL default '1',
`CreateDate` datetime NOT NULL default '0000-00-00 00:00:00',
`CreateUserId` int(10) NOT NULL default '0',
`ModifyDate` datetime NOT NULL default '0000-00-00 00:00:00',
`ModifyUserId` int(10) NOT NULL default '0',
`Mnemo` varchar(255) NOT NULL default '',
`Name` varchar(255) NOT NULL default '',
`Filename` varchar(255) NOT NULL default '',
`Content` text NOT NULL,
`Description` tinytext NOT NULL,
`IsVisible` tinyint(4) NOT NULL default '1',
PRIMARY KEY (`Id`),
UNIQUE KEY `Mnemo` (`Mnemo`)
) TYPE=MyISAM;
При вставке новой записи, mysql_query возвращает false.
Причем, проблема только с этим запросом, другие запросы работают нормально.
Вот запрос:
INSERT INTO pages (ParentId, Type, CreateDate, CreateUserId, ModifyDate, ModifyUserId, Name, Mnemo, Filename, Content, Description) VALUES ( '0', '1', '2005-10-20 15:16:15', '1', '2005-10-20 15:16:15', '1', 'Моя страница', 'my_page', '', 'Content', 'Desc')