Otoz po zapytaniu SQL
CREATE TABLE shoutbox ( id int(11) DEFAULT '0' NOT NULL AUTO_INCREMENT, tresc text, imie text, ip text, UNIQUE id (id), PRIMARY KEY (id) );
MySQL zwrócił komunikat:
#1067 - Invalid default value for 'id'
Znalazlem na jednym z forow ten sam problem, wtedy ktos poradzil aby wyslac takie zapytanie
CREATE TABLE `shoutbox` ( `id` int(11) NOT NULL AUTO_INCREMENT, `tresc` text NOT NULL DEFAULT '', `imie` text NOT NULL DEFAULT '', `ip` text NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
Fakt, wchodiz, bez problemu, ale na stronie wyswietla sie komunikat Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in
Co zrobic?