include 'includes/scripts.php'; /* Get lines from user's answers and song type */ $songtype = $_POST["songtype"]; $line1 = ucfirst(stripslashes($_POST["answer1"])); $line2 = ucfirst(stripslashes($_POST["answer2"])); $line3 = ucfirst(stripslashes($_POST["answer3"])); $line4 = ucfirst(stripslashes($_POST["answer4"])); $line5 = ucfirst(stripslashes($_POST["answer5"])); $line6 = ucfirst(stripslashes($_POST["answer6"])); $allLyricLines = array(); $result = mysqli_query($connection,"SELECT * FROM songlyrics WHERE genre = $songtype"); if (!$result) die("Error " . mysqli_errno() . " : " . mysqli_error()); while ($row = mysqli_fetch_array($result,MYSQLI_NUM)) { array_push($allLyricLines, $row[1]); } ?>
include 'includes/header.php' ?>