CREATE TABLE `mydata` (
`b1` text collate utf8_unicode_ci NOT NULL,
`b2` text collate utf8_unicode_ci NOT NULL,
`b3` text collate utf8_unicode_ci NOT NULL,
`EndtoEnd` text collate utf8_unicode_ci NOT NULL,
`Calcu` text collate utf8_unicode_ci NOT NULL,
`CATBFKT` text collate utf8_unicode_ci NOT NULL,
`TT` text collate utf8_unicode_ci NOT NULL,
`Ticket` text collate utf8_unicode_ci NOT NULL,
`AMO` text collate utf8_unicode_ci NOT NULL,
`Zone` text collate utf8_unicode_ci NOT NULL,
`ActionTeam` text collate utf8_unicode_ci NOT NULL,
`SLA` text collate utf8_unicode_ci NOT NULL,
`b5` text collate utf8_unicode_ci NOT NULL,
`Starts` text collate utf8_unicode_ci NOT NULL,
`Restores` text collate utf8_unicode_ci NOT NULL,
`Times` text collate utf8_unicode_ci NOT NULL,
`Delay` text collate utf8_unicode_ci NOT NULL,
`Total` text collate utf8_unicode_ci NOT NULL,
`Site` text collate utf8_unicode_ci NOT NULL,
`SitexTime` text collate utf8_unicode_ci NOT NULL,
`b6` text collate utf8_unicode_ci NOT NULL,
`Problem` text collate utf8_unicode_ci NOT NULL,
`Edit` text collate utf8_unicode_ci NOT NULL,
`More1` text collate utf8_unicode_ci NOT NULL,
`More2` text collate utf8_unicode_ci NOT NULL,
`Pass` text collate utf8_unicode_ci NOT NULL,
`Cause` text collate utf8_unicode_ci NOT NULL,
`Subcause` text collate utf8_unicode_ci NOT NULL,
`SANSA` text collate utf8_unicode_ci NOT NULL,
`SiteID` text collate utf8_unicode_ci NOT NULL,
`ATNT` text collate utf8_unicode_ci NOT NULL,
`TX` text collate utf8_unicode_ci NOT NULL,
`faultclearance` text collate utf8_unicode_ci NOT NULL,
`Zone2` text collate utf8_unicode_ci NOT NULL,
`OFCCATBFKT` text collate utf8_unicode_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
$objQuery = mysql_query($strSQL) or die( "<br/>".mysql_error() );
ใส่ or die( "<br/>".mysql_error() เพิ่ม แล้วทำให้ Error
Quote:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Chittawan ����� ODU Failure ������¹���� ��������дǡ�չ���. Replace ODU ' at line 22
INSERT INTO mydata (b1,b2,b3,EndtoEnd,Calcu,CATBFKT,TT,Ticket,AMO,Zone,ActionTeam,SLA,b5,Starts,Restores,Times,Delay,Total,Site,SitexTime,b6,Problem,Edit,More1,More2,Pass,Cause,Subcause,SANSA,SiteID,ATNT,TX,faultclearance,Zone2,OFCCATBFKT) VALUES ('P', '', '2014', '3', '3', 'BFKT', 'TT20140302936', 'SKT6726U : NodeB Unavailable, SCTP Link Fault', 'SKT6726', 'Zone2', 'NOR-TAK', 'SA3', '14', '4/3/2014 16:24 �.', '5/3/2014 9:24 �.', '17:00', '09:11', '07:49', '1', '07:49', '', 'Stop Clock04/03/2014 23:49 K'Chittawan ����� ODU Failure ������¹���� ��������дǡ�չ���. Replace ODU Eclipse ���鹷ҧ TAK6526 Link TAK6526-TAK6726 site up alarm clear ;1$AT!SK1 Start time: 05/03/2014 09:00:00 Restoration time : 05/03/2014 09:24:00', '', '', '', '', 'Hardware - MW', 'Eclipse / ODU - damage', 'S', 'SKT6726', 'AT', 'IP MW', '07:49', 'Zone2', '')
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Chittawan ����� ODU Failure ������¹���� ��������дǡ�չ���. Replace ODU ' at line 22