--
-- Table structure for table `filmer`
--
CREATE TABLE `filmer` (
`id` int(6) NOT NULL auto_increment,
`tittel` varchar(255) NOT NULL,
`tittel_the` varchar(255) NOT NULL,
`spilletid` int(4) NOT NULL,
`kategori` varchar(100) NOT NULL,
`serie` varchar(255) default NULL,
`nr` int(2) NOT NULL default '0',
PRIMARY KEY (`id`),
FULLTEXT KEY `tittel` (`tittel`),
FULLTEXT KEY `serie` (`serie`),
FULLTEXT KEY `kategori` (`kategori`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
$sql = "SELECT * FROM filmer";
$result = mysql_query($sql);
while ($value = mysql_fetch_object($result)) :
$class = ($i % 2) ? 'odd' : 'even';
$row = "\t\t".'<tr class="%s"><td><a href="http://www.imdb.com/find?s=tt&q=%s" title="Slå opp %s på IMDB.com">%s</a></td><td>%s</td><td>%s</td><td>%s</td></tr>'."\n";
$serie = ($value->nr != 0) ? $value->serie.' '.$value->nr : '';
printf($row, $class, html_entity_decode($value->tittel), html_entity_decode($value->tittel), html_entity_decode($value->tittel_the), $value->spilletid, $value->kategori, $serie);
$i++;
endwhile;
SELECT * FROM filmer WHERE MATCH (kategori) AGAINST ('Action/Komedie') ORDER BY tittel_the
SELECT * FROM filmer WHERE MATCH (kategori) AGAINST ('Drama/Komedie') ORDER BY tittel_the
SELECT * FROM filmer WHERE MATCH (kategori) AGAINST ('Action') ORDER BY tittel_the
Registrerte brukere: Google [Bot]