Witam
Zainstalowałem skrypt php który pracuje na bazie mySQL ale przy załadowaniu bazy w PHPmyAdmin wyskakuje mi taki błąd (pod kodem źródłowym):
--
CREATE TABLE `testurls` (
`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`bannerurl` varchar( 200 ) NOT NULL default '',
`uid` int( 11 ) NOT NULL default '0',
PRIMARY KEY ( `id` ) ,
UNIQUE KEY `id` ( `id` )
) TYPE = MYISAM AUTO_INCREMENT =8;
--
-- Dumping data for table `testurls`
--
INSERT INTO `testurls`
VALUES ( 1, 'http://test1.pl/banner.gif', 1 ) ;
INSERT INTO `testurls`
VALUES ( 3, 'http://test2.pl/banner.jpg', 2 ) ; 1
INSERT INTO `testurls`
VALUES ( 4, 'http://test3.pl/banner.jpg', 3 ) ;
INSERT INTO `testurls`
VALUES ( 7, 'http://test4/ban11.jpg', 6 ) ;
-- --------------------------------------------------------
--
-- Table structure for table `testuser`
--
CREATE TABLE `testuser` (
`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`login` varchar( 20 ) NOT NULL default '',
`pass` varchar( 20 ) NOT NULL default '',
`name` varchar( 200 ) NOT NULL default '',
`email` varchar( 100 ) NOT NULL default '',
`url` varchar( 200 ) NOT NULL default '',
`exposures` int( 11 ) NOT NULL default '0',
`credits` decimal( 20, 2 ) NOT NULL default '0.00',
`clicks` int( 11 ) NOT NULL default '0',
`siteclicks` int( 11 ) NOT NULL default '0',
`approved` tinyint( 4 ) NOT NULL default '0',
`defaultacct` tinyint( 4 ) NOT NULL default '0',
`raw` blob,
`lastip` text NOT NULL ,
PRIMARY KEY ( `id` ) ,
UNIQUE KEY `id` ( `id` , `login` )
) TYPE = MYISAM AUTO_INCREMENT =7;
--
-- Dumping data for table `testuser`
--
INSERT INTO `testuser`
VALUES ( 1, 'test1', '123456', 'Krzysztof', 'test1@wp.pl', 'http://test1.pl', 1237,
999967.00, 5, 0, 1, 0, '') ;
INSERT INTO `testuser`
VALUES ( 2, 'test2', '123456', 'Admin', 'test2@wp.pl', 'http://test2.pl', 39347,
62441.60, 38, 10, 1, 1, '') ;
INSERT INTO `testuser`
VALUES ( 3, 'test3', '123456', 'Krzychu', 'test3@wp.pl', 'http://test3.pl', 4555,
999961.00, 4, 30, 1, 0, '') ;
INSERT INTO `testuser`
VALUES ( 6, 'test4', '123456', 'Krzys', 'test4@wp.pl', 'http://test4.pl', 8186, 0.40, 13,
32, 1, 1, '') ;
MySQL zwrócił komunikat:
#1064 - 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 'INSERT INTO `testadmin` VALUES (1,
'admin', '123456');# Zmodyfikowanych rekord' at line 18
Niestety SQLa znam podstawy albo nawet mniej i nie wiem co nie tak jest w tym kodzie źródłowym, że skrypt php nie chce działać z bazą. Niby nie ma żandych komunikatów błędów ale przy logowaniu na admina wyskakuje tak jakby były nieprawidłowe dane albo nie istaniał
No właśnie, i co oznacza ten błąd #1064 w tym przypadku