Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Prosze o pomoc, Gdzie tkwi błąd
remiq26
post 21.07.2005, 11:06:29
Post #1





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 1.06.2005
Skąd: Jaworzno

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


Prosze o pomoc chciałam zrobić zapytanie do mysql poprzez phpmyadmin i dostałam nastepujący komunikat




  1. MySQL zwrócił komunikat:
  2.  
  3. #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 'auto_incremant,
  4. sLogin char(16),
  5. sPassword char(16),
  6. primary




To jest ten kod do mysql

  1. CREATE TABLE tabSession (
  2. idSession int NOT NULL AUTO_INCREMENT,
  3. idUser int NOT NULL DEFAULT 0,
  4. sid char(32),
  5. tLastAction timestamp,
  6. tDate timestamp,
  7. sIP char(15),
  8. nHits int NOT NULL DEFAULT 0,
  9. bActive tinyinit NOT NULL DEFAULT 1,
  10. PRIMARY KEY(idSession),
  11. KEY(sid(3))
  12. );
  13.  
  14. CREATE TABLE tabUser (
  15. idUser int NOT NULL auto_incremant,
  16. sLogin char(16),
  17. sPassword char(16),
  18. PRIMARY KEY (idUser),
  19. KEY(sLogin(3))
  20. );
  21.  
  22.  
  23. INSERT
  24. INTO tabUser (sLogin,sPassword) VALUES
  25. ('admin','haslo');


Ten post edytował remiq26 21.07.2005, 11:07:00


--------------------
Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color php/5.1.2Perl 5.8.6 Mysql 5.0.20 API
Go to the top of the page
+Quote Post
nospor
post 21.07.2005, 11:16:16
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




powinno byc:
Cytat
create table tabUser (
idUser int not null auto_increment,
.....


pozatym nie to foeum. przenosze


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post
remiq26
post 21.07.2005, 11:31:24
Post #3





Grupa: Zarejestrowani
Postów: 40
Pomógł: 0
Dołączył: 1.06.2005
Skąd: Jaworzno

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


Ok dziękuję Uporałam się


Pozdrawiam, Pa

Ten post edytował remiq26 21.07.2005, 11:32:40


--------------------
Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color php/5.1.2Perl 5.8.6 Mysql 5.0.20 API
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 19.07.2025 - 16:05