Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MYSQL/PHP] jak poradzić se z tym błędem?
tomek55
post
Post #1





Grupa: Zarejestrowani
Postów: 38
Pomógł: 0
Dołączył: 8.09.2003
Skąd: olsztyn

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


Podczas pisania programu pojawia mi sie taki błąd mysql:

Kod
Column count doesn't match value count at row 1


Niestety angielski to moja słaba strona więc zwrcam się o pomoc, jak to naprawić, co jest źle?

Struktura tabeli:

[sql:1:a31e2859a7]CREATE TABLE arts (
id int(11) NOT NULL auto_increment,
art_date datetime NOT NULL default '0000-00-00 00:00:00',
art_id text NOT NULL,
przeciwnik text NOT NULL,
sklad text NOT NULL,
przebieg text NOT NULL,
my_alianci_mapa1 text NOT NULL,
my_axis_mapa1 text NOT NULL,
nasz_wynik_mapa1 text NOT NULL,
my_alianci_mapa2 text NOT NULL,
my_axis_mapa2 text NOT NULL,
nasz_wynik_mapa2 text NOT NULL,
oni_alianci_mapa1 text NOT NULL,
oni_axis_mapa1 text NOT NULL,
ich_wynik_mapa1 text NOT NULL,
oni_alianci_mapa2 text NOT NULL,
oni_axis_mapa2 text NOT NULL,
ich_wynik_mapa2 text NOT NULL,
nasz_wynik_end text NOT NULL,
ich_wynik_end text NOT NULL,
mapa1 text NOT NULL,
mapa2 text NOT NULL,
login text NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
[/sql:1:a31e2859a7]

i tu kod php jakim dodaje dane do bazy:

[php:1:a31e2859a7]<?php
$wynik = mysql_query("INSERT INTO arts VALUES('', now(), '$id_cat', '$przeciwnik', '$sklad', '$przebieg', '$mapa1a', '$mapa1ax', '$naszwynik1', '$myalianci2', '$myaxis2', '$naszwynik2', '$mapa1oniax', '$mapa1onia', '$ichwynik1', '$naszwynik','$ichwynik', '$mapa1', '$mapa2', '$login')");
?>[/php:1:a31e2859a7]
Go to the top of the page
+Quote Post

Posty w temacie


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 - 17:34