Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
CREATE TABLE IF NOT EXISTS `genres` (
`id` int(12) NOT NULL AUTO_INCREMENT,
`genre` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=32 ;
--
-- Дъмп (схема) на данните в таблицата `genres`
--
INSERT INTO `genres` (`id`, `genre`) VALUES
(1, 'House'),
(2, 'Dance'),
(3, 'Pop'),
(4, 'Techno'),
(5, 'HipHop'),
(6, 'Rock'),
(7, 'Club'),
(8, 'Metal'),
(9, 'Rap'),
(10, 'Поп-Фолк'),
(11, 'Други'),
(12, 'Darkcore'),
(13, 'Drum''n''bass'),
(14, 'Electronic'),
(15, 'Gothic'),
(16, 'Hard Techno'),
(17, 'Hardcore'),
(18, 'Hardstyle'),
(19, 'Jazz'),
(20, 'Punk'),
(21, 'Reggaeton'),
(22, 'Retro'),
(23, 'Speedcore'),
(24, 'Trance'),
(25, 'Гръцко'),
(26, 'БГ Рап'),
(27, 'Детски'),
(28, 'Кючеци'),
(29, 'Народна'),
(30, 'Сръбско'),
(31, 'Турско');
<?php
include("conn.php");
$id = $_GET['id'];
$sql = mysql_query("SELECT * FROM `songs` WHERE `id`='$id'");
$row = mysql_fetch_array($sql);
?>
<table width="395" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
<tr>
<td colspan="2" class="lfhead"><?php echo "$row[artist] - $row[title]"; ?></td>
</tr>
<tr>
<td width="100">Стил :</td>
<td width="200"><?php
$cat = mysql_query("SELECT * FROM `songs_cat` WHERE `id`='$row[cat]'");
$raw = mysql_fetch_array($cat);
$genername = $raw['value'];
echo "<a href=\"songs.php?gener=$row[cat]\" title=\"Песни в стил $genername\">$genername</a>";
?></td>
</tr>
<tr>
<td>Добавена на :</td>
<td><?php echo $row['date']; ?></td>
</tr>
<tr>
<td>Добавена от:</td>
<td><?php echo $row['author']; ?></td>
</tr>
<tr>
<td>Албум :</td>
<td><?php echo $row['album']; ?></td>
</tr>
<tr>
<td>Размер :</td>
<td><?php echo $row['size']; ?></td>
</tr>
<tr>
<td>Година :</td>
<td align="left"><?php echo $row['year']; ?></td>
</tr>
<tr>
echo "<a href=\"songs.php?gener=$row[cat]\" title=\"Песни в стил $genername\">$genername</a>";