struktura tabeli komentarze
---------------------------------------
--
-- Struktura tabeli dla `komentarze`
--
CREATE TABLE `komentarze` (
`id` varchar(100) NOT NULL DEFAULT '',
`id_news` int(100) NOT NULL DEFAULT '100',
`autor` text NOT NULL,
`Text` text NOT NULL,
`data` date NOT NULL DEFAULT '0000-00-00'
) TYPE=MyISAM;
--
tabela news
CREATE TABLE `news` (
`id` int(100) NOT NULL AUTO_INCREMENT,
`temat` text NOT NULL,
`tresc` text NOT NULL,
`obrazek` text NOT NULL,
`autor` text NOT NULL,
`data` text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=36 ;
prosze was rozwiarzcie mi ten problem bo mnie juz pot zalewa przy tym
dzialanie tego skryptu nie jest takie jakbym sobie rzyczył tzn nie dziala 1-petla while ktora pobiera wszystkie newsy i nie dziala pobieranie komentarzy ..
prosze
bład:
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 'id #5' at line 1
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/accounts_r/raffal/public_html/sysnews.php on line 45
efekt wyszedł mi taki
http:// raffal.boo.pl