hello
i am working on music project. I have a big problem that i dont wanna show the download button if i dont upload song. Like, i can upload maximum 8 songs in my project but if the album have 5 songs or more or less , then i dont want to show the download button. please help me. this is my code:
<?php
include_once(“config.php”);
$albumname=$_REQUEST['id'];
$m="select * from hindiaudio where albumname='$albumname'";
$n=mysql_query($m);
echo"<table border='2' width='200%' height='200px'>
<tr>
<th>SONG_NAME</th>
<th>DOWNLOAD </th>
</tr>";
while($row=mysql_fetch_array($n))
{
echo"<tr>";
echo"<td><center>".$row['name1']."</td>";
echo"<td><center><a href='downloadhindiaud1.php?id=".$row['code1']."'>DOWNLOAD</a>"."</td>";
echo"</tr>";
echo"<tr>";
echo"<td><center>".$row['name2']."</td>";
echo"<td><center><a href='downloadhindiaud2.php?id=".$row['code2']."'>DOWNLOAD</a>"."</td>";
echo"</tr>";
echo"<tr>";
echo"<td><center>".$row['name3']."</td>";
echo"<td><center><a href='downloadhindiaud3.php?id=".$row['code3']."'>DOWNLOAD</a>"."</td>";
echo"</tr>";
echo"<tr>";
echo"<td><center>".$row['name4']."</td>";
echo"<td><center><a href='downloadhindiaud4.php?id=".$row['code4']."'>DOWNLOAD</a>"."</td>";
echo"</tr>";
echo"<tr>";
echo"<td><center>".$row['name5']."</td>";
echo"<td><center><a href='downloadhindiaud5.php?id=".$row['code5']."'>DOWNLOAD</a>"."</td>";
echo"</tr>";
echo"<tr>";
echo"<td><center>".$row['name6']."</td>";
echo"<td><center><a href='downloadhindiaud6.php?id=".$row['code6']."'>DOWNLOAD</a>"."</td>";
echo"</tr>";
echo"<tr>";
echo"<td><center>".$row['name7']."</td>";
echo"<td><center><a href='downloadhindiaud7.php?id=".$row['code7']."'>DOWNLOAD</a>"."</td>";
echo"</tr>";
echo"<tr>";
echo"<td><center>".$row['name8']."</td>";
echo"<td><center><a href='downloadhindiaud8.php?id=".$row['code8']."'>DOWNLOAD</a>"."</td>";
echo"</tr>";
}
echo"</table>";
?>