|
0){
// while($row = mysqli_fetch_array($result)) {
// echo “
“;
// echo “
” . $row[‘title’] . “
“;
// echo “
“;
// }
// }
include(“function.php”);
$uflag=’u’;
//$page = (int) (!isset($_GET[“page”]) ? 1 : $_GET[“page”]);
//$limit = 25;
//$startpoint = ($page * $limit) – $limit;
?>
lyrics is $lyrics “;
if(isset($str1)==”)
{
$str1=”where title like ‘%$title%’ or title_mr like ‘%$title%'”;
}
else
{
$str1=$str1.”and title like ‘%$title%’ or title_mr like ‘%$title%'”;
}
}
if($lyrics!=”)
{
//echo “
lyrics is $lyrics “;
if(isset($str1)==”)
{
$str1=”where l_id=’$lyrics'”;
}
else
{
$str1=$str1.”and l_id=’$lyrics'”;
}
}
if($singer!=”)
{
//echo “
Singer is $singer”;
if(isset($str1)==”)
{
$str1=”where s_id=’$singer'”;
}
else
{
$str1=$str1.” and s_id=’$singer'”;
}
}
if($music!=”)
{
//echo “
Music director is $music”;
if($str1==”)
{
$str1=”where m_id=’$music'”;
}
else
{
$str1=$str1.” and m_id=’$music'”;
}
}
if($songtype!=”)
{
//echo “
Song type is $songtype”;
if($str1==”)
{
$str1=”where songtype=’$songtype'”;
}
else
{
$str1=$str1.” and songtype=’$songtype'”;
}
}
$sql=”select * from songs “.$str1.” “;
$statement = ” songs “.$str1;
$sqlres=mysqli_query($conn,$sql);
$sqlcount = “select count(*) from songs “.$str1;
$rs_result1 = mysqli_query($conn,$sqlcount);
$row = mysqli_fetch_row($rs_result1);
$total_records = $row[0];
$nor=$total_records;
//echo’‘;
//echo $searchresult.’ – ‘;
//echo “$searchstr ( $nor songs )”;
//echo’
‘;
?>
songtype==10)
$imgnm=”ram/$rs->imgname”;
else
$imgnm=substr($rs->imgname,0,2).”/”.substr($rs->imgname,0);
echo ‘
‘;
echo ‘
‘;
echo ‘
‘;
$qrys=mysqli_query($conn,”select s_name,s_name_mr from singer where s_id=$rs->s_id”);
$rssig=mysqli_fetch_object($qrys);
echo ‘
‘;
?>
‘;
}
/*$pagLink = “
for ($i=1; $i<=$total_pages; $i++) { $pagLink .= ““.$i.”“;
};
echo $pagLink . “
“; */
?>
Sr. No. | Title | |||
---|---|---|---|---|
‘; echo $srno.”.”; echo ‘ |
‘; echo ‘‘; echo “$rs->title_mr”; echo ‘ |
‘; if($uflag==’u’) { if($rssig->s_name_mr==”) echo $rssig->s_name; else echo $rssig->s_name_mr; } else echo $rssig->s_name; echo ‘ |
‘; $qrysl=mysqli_query($conn,”select l_name,l_name_mr from lyrics where l_id=$rs->l_id”); $rslyr=mysqli_fetch_object($qrysl); if($uflag==’u’) { if($rslyr->l_name_mr==”) echo $rslyr->l_name; else echo $rslyr->l_name_mr; } else { echo $rslyr->l_name; } echo ‘ |
‘;
//fetching music director name |