Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z utworzeniem tablicy
-Gość_rad3k_*-
post
Post #1





Goście







Jeślie możecie to sprawdzcie mi ten skrypt:

  1. <?php
  2. $host = "xyz";
  3. $user = "abc";
  4. $pass = "xyz";
  5. $connect = mysql_connect($host, $user, $pass) or
  6. die ("Sprawdź połączenie z serwerem.");
  7.  
  8. $yyy = "CREATE TABLE yyy (
  9. aaa_id int(11) NOT NULL auto_increment,
  10. aaa_name varchar(255) NOT NULL,
  11. )";
  12. $results = mysql_query($yyy)
  13. or die (mysql_error());
  14. echo "Poprawnie utworzono bazę danych telefonów!";
  15. ?>

po uruchomieniu skryptu na serwerze wyskakuje taki błąd: 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 ')' at line 4
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
rad3k
post
Post #2





Grupa: Zarejestrowani
Postów: 22
Pomógł: 0
Dołączył: 4.02.2006

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


ten gość to ja (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) bazy danych nie tworzyłem bo mam już utworzoną, teraz chciałem ją tylko otworzyć i dodać tablice.
Go to the top of the page
+Quote Post
nasty
post
Post #3





Grupa: Zarejestrowani
Postów: 634
Pomógł: 14
Dołączył: 27.05.2006
Skąd: Berlin

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


  1. CREATE TABLE yyy (
  2. aaa_id int(11) NOT NULL AUTO_INCREMENT,
  3. aaa_name varchar(255) NOT NULL [b][u],[/u][/b] -> Tu nie powinno byc przecinka
  4. )


Ten post edytował nasty_psycho 29.06.2006, 10:46:13
Go to the top of the page
+Quote Post
-Gość-
post
Post #4





Goście







Dzięki (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) działa
Go to the top of the page
+Quote Post

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: 23.08.2025 - 11:15