Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]/[mysql] baza seriali, Wyświetlanie samych tytułów
Lejto
post
Post #1





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


Mam bazę seriali gdzie np. jeden rekord wygląda tak Brygada ratunkowa Sezon 6 Odcinek 14 każdy sezon ma swoje ID. Chcę wyciągnąć z bazy same tytuły zeby się nic nie powtarzało np. Brygada ratunkowa, Lost, CSI itp. Jak to zrobić?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Lejto
post
Post #2





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


struktura
  1.  
  2. CREATE TABLE IF NOT EXISTS `videos` (
  3. `videos_id` int(11) NOT NULL AUTO_INCREMENT,
  4. `last_viev` datetime NOT NULL,
  5. `views` int(11) NOT NULL,
  6. `rate` int(11) NOT NULL,
  7. `year` int(11) NOT NULL,
  8. `data` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  9. `description` text NOT NULL,
  10. `video` text NOT NULL,
  11. `code` text NOT NULL,
  12. `xfields` text NOT NULL,
  13. `cover` text,
  14. `title` varchar(255) NOT NULL DEFAULT '',
  15. `flag` text NOT NULL,
  16. `type` int(11) NOT NULL,
  17. `assessments` int(11) NOT NULL,
  18. `added` int(11) NOT NULL,
  19. PRIMARY KEY (`videos_id`),
  20. KEY `date` (`data`),
  21. FULLTEXT KEY `short_story` (`description`,`video`,`xfields`,`title`)
  22. ) ENGINE=MyISAM DEFAULT CHARSET=latin2 AUTO_INCREMENT=12922 ;
  23.  

(IMG:http://img218.imageshack.us/img218/6070/bazab.jpg)
Go to the top of the page
+Quote Post

Posty w temacie


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: 5.10.2025 - 21:06