![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 288 Pomógł: 12 Dołączył: 2.12.2005 Ostrzeżenie: (0%) ![]() ![]() |
Wyobraźcie sobie tabelę:
id smallint(5) unsigned not null auto_increment temat varchar(200) not null autor smallint(5) unsigned not null default '1' miesiac smallint(5) unsigned not null default '0' tresc text not null data int(10) unsigned not null default '0' I mam taki problem: chcę dodać do bazy danych tylko i wyłącznie treść newsa i używam w tym celu takiego kodu:
(IMG:http://forum.php.pl/uwaga.gif) poprawiam --- nospor Mam problem, nie chce się tabela dodawać. Wyświetla Bład podczas dodawania newsa. Co mam źle? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 288 Pomógł: 12 Dołączył: 2.12.2005 Ostrzeżenie: (0%) ![]() ![]() |
zapytanie:INSERT INTO newsy (tresc) VALUES ('asdfasdf')
Błąd podczas dodawania newsa: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Połączenie z bazą? No chyba mam skoro, wyświetla mi normalnie newsy, ale nie mogę ich dodać.:/ OK, popróbuję jeszcze coś z tym tematem porobić:) EDIT: A muszę mu podawać ID skoro mam auto_increment primary key?? Ten post edytował tommy4 2.12.2005, 13:18:59 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 5.10.2025 - 23:15 |