Пример #1
0
    while ($row = mysql_fetch_array($result)) {
        echo ' <div class="row marketing"> ';
        echo ' <div class="col-md-6"> ';
        echo " <h4>" . $row['name'] . "</h4> ";
        echo "\t<p>" . $row['artist'] . "</p> ";
        echo ' </div> ';
        echo ' <div class="col-md-6"> ';
        echo ' <br />';
        echo ' <a class="btn btn-alert" href="update.php?update=' . $row['song_id'] . '">Update</a> ';
        echo ' <a class="btn btn-alert" href="profile.php?delete=' . $row['song_id'] . '">Delete</a> ';
        echo " </div>";
        echo ' </div>';
    }
}
if (!empty($_GET['delete'])) {
    deleteSong($_GET['delete']);
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
	<meta name="description" content="">
	<meta name="author" content="">
	<link rel="icon" href="../../favicon.ico">

	<title>Profile</title>
Пример #2
0
            </form>

        </div>
    </ul>
    <?php 
loggedIn();
?>
    <!-- end .sidebar1 --></div>
<!-- SIDEBAR-->

<!-- CONTENT-->
    <div class="content">
        <h1>Musik</h1>
    <table>

        <tbody>
        <?php 
showAllMusicAdmin();
?>
        </tbody>
    </table>
        </div>
<?php 
deleteSong();
?>
<!-- CONTENT-->
<?php 
include "includes/footer.php";
?>