Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Prosze o pomoc, Gdzie tkwi błąd
remiq26
post
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

Posty w temacie
- remiq26   Prosze o pomoc   21.07.2005, 11:06:29
- - nospor   powinno byc: Cytatcreate table tabUser ( idUser in...   21.07.2005, 11:16:16
- - remiq26   Ok dziękuję Uporałam się Pozdrawiam, Pa   21.07.2005, 11:31:24


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 Aktualny czas: 21.08.2025 - 22:58