Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Something is wrong in your syntax obok ... latin1
Sharky
post
Post #1





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 8.03.2006

Ostrzeżenie: (0%)
-----


Witam, gdy chce dodac zapytanie do bazy danych, pojawia mi sie nastepujacy napis:
#1064 - Something is wrong in your syntax obok 'DEFAULT CHARSET=latin1' w linii 18

w 18 linii mam:
  1. ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;


co jest nie tak?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Sharky
post
Post #2





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 8.03.2006

Ostrzeżenie: (0%)
-----


Mam część kodu tak:
  1. --
  2. -- Table structure for table `account`
  3. --
  4.  
  5. CREATE TABLE `account` (
  6. `id` int(11) NOT NULL AUTO_INCREMENT,
  7. `user_id` int(11) NOT NULL DEFAULT '0',
  8. `amount` decimal(10,2) NOT NULL,
  9. `payment_opt` enum('P','A') NOT NULL DEFAULT 'P',
  10. `status` enum('Y','N') NOT NULL DEFAULT 'Y',
  11. `deleted` enum('Y','N','P') NOT NULL DEFAULT 'N',
  12. `entrydate` varchar(20) NOT NULL DEFAULT '',
  13. `paystatus` enum('TRUE','FALSE','Pending') NOT NULL DEFAULT 'Pending',
  14. `order_id` int(11) NOT NULL DEFAULT '0',
  15. `transfer_status` enum('TRUE','FALSE') NOT NULL DEFAULT 'FALSE',
  16. `approved` enum('Y','N') NOT NULL DEFAULT 'N',
  17. `bid_cost` int(11) NOT NULL DEFAULT '0',
  18. `shipped` enum('Y','N') NOT NULL DEFAULT 'N',
  19. `item_id` int(11) NOT NULL,
  20. `paytime` int(11) NOT NULL,
  21. PRIMARY KEY (`id`)
  22. ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
  23.  
  24.  
  25. --
  26. -- Dumping data for table `account`
  27. --
  28.  
  29. INSERT INTO `account` VALUES (1,104,'120.00','P','Y','N','2009-03-02 05:52:12','Pending',1235994732,'FALSE','N',4,'N',0,0),(2,104,'120.00','P','Y','N','2009-03-02 05:53:47','Pending',1235994827,'FALSE','N',4,'N',0,0),(3,104,'120.00','P','Y','N','2009-03-02 05:53:58','Pending',1235994838,'FALSE','N',4,'N',0,0),(4,104,'120.00','A','Y','N','2009-03-02 05:54:05','Pending',1235994845,'FALSE','N',4,'N',0,0),(5,107,'240.00','P','Y','N','2009-03-02 16:37:43','TRUE',1236033463,'TRUE','N',10,'N',0,0),(6,107,'240.00','P','Y','N','2009-03-02 16:38:03','TRUE',1236033483,'TRUE','N',10,'N',0,0),(7,107,'240.00','P','Y','N','2009-03-02 16:38:13','TRUE',1236033493,'TRUE','N',10,'N',0,0);
  30.  


Ten post edytował Sharky 12.11.2009, 19:51:16
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.12.2025 - 07:37