<?
include("../config.php");
if(!isset($cmd))
{
$result = mysql_query("select * FROM mp3 ");
while($r=mysql_fetch_array($result))
{
$id=$r["id"];
$album=$r["album"];
echo "
<table border='1' height='30' width='500' id='table1'>
<TR>
<td<img border='0' src='../images/document.gif' width='11' height='11'><a href='a_3.php?cmd=delete&id=$id'><font face='Tahoma' color='#1678AD' style='font-size: 8pt'><span lang='fa'style='text-decoration: none'>Delete :: </span><span style='text-decoration: none'>$album</span></font></td></a>";
echo " ";
}
}
?>
</td>
</table>
</table>
<?
$result = mysql_query("select * FROM mp3 ");
while($r=mysql_fetch_array($result))
$id=$r["id"];
if($_GET["cmd"]=="delete")
{
$sql = "DELETE FROM mp3 WHERE id = $id Limit 1";
$result = mysql_query($sql);
echo "<p align='right'><font face='Tahoma' style='font-size: 8pt' color='#FF0000'>
<span lang='fa'>Album Deleted !</span></font></p>";
}
?>