<meta name="robots" content="noindex,nofollow"> <?php //@require_once($mainFolder.'dbconnect.php'); $errorMessageEditAlbum = ''; $editAlbumAttributeValue = ''; if (isset($_POST['editAlbumSubmit'])) { $albumId = $_POST['editAlbumId']; $editAlbumAttribute = $_POST['editAlbumAttribute']; if ($editAlbumAttribute == '3') { //echo 'here'; $albumDetails = getAlbumDetails($albumId); $albumName = $albumDetails['AlbumName']; //unlink('../'.$albumDetails['AlbumImage']); if (!empty($_FILES['editAlbumImage']['name'])) { $image = $_FILES['editAlbumImage']; $imageExtension = strtolower(substr($image['name'], strpos($image['name'], '.') + 1)); $finalImageLoc = 'lyricsAlbum/' . $albumName . '-' . time() . '.' . $imageExtension; $imageLocation = '../' . $finalImageLoc; $editAlbumAttributeValue = $finalImageLoc; //validating the image if (!empty($image) && ($imageExtension == 'jpeg' || $imageExtension == 'jpg' || $imageExtension == 'png') && ($image['type'] == 'image/jpeg' || $image['type'] == 'image/png')) { //save image into images/astrologers/ if (move_uploaded_file($image['tmp_name'], $imageLocation)) { //image saved } } else { $errorMessageEditAlbum = 'Image must be jpg or png.'; } } } else { $editAlbumAttributeValue = $_POST['editAlbumAttributeValue'];
<div class="container"> <div class="col-md-8"> <h1>Search Result for "<?php echo $searchTag; ?> " </h1> <div class="bottom"> <?php global $searchTag; global $advanceSearchFlag; $searchedSongs = searchSong($searchTag, $advanceSearchFlag); //print_r($searchedSongs); $count = 1; while ($searchedSong = $searchedSongs->fetch_assoc()) { $albumDetails = getAlbumDetails($searchedSong['AlbumId']); if ($count % 2 == 0) { $color = 'style="background-color:#FFFAFA; margin-top:5px;"'; } else { $color = 'style="background-color:#EEE9E9; margin-top:5px;"'; } if (trim($searchedSong['SongSinger']) == '') { $searchedSong['SongSinger'] = ' - '; } if (trim($searchedSong['SongLyricist']) == '') { $searchedSong['SongLyricist'] = ' - '; } echo '<div class="col-md-12 posts" ' . $color . ' > <a href="' . $mainUrl . str_replace(' ', '-', $albumDetails['AlbumName']) . '/' . $searchedSong['SongId'] . '/hindi-lyrics-of/' . str_replace(' ', '-', $searchedSong['SongName'] . ' ' . str_replace(',', '', $searchedSong['SongSinger'])) . '.htm" title="Lyrics of the song ' . $searchedSong['SongName'] . ' sung by songer ' . $searchedSong['SongSinger'] . ' from the movie ' . $albumDetails['AlbumName'] . ' and lyrics of this song has been written by ' . $searchedSong['SongLyricist'] . '. "> <div class="col-md-4"> ' . $searchedSong['SongName'] . ' <br><br>