diff --git a/edit/backheader.php b/edit/backheader.php deleted file mode 100644 index e0fec98c..00000000 --- a/edit/backheader.php +++ /dev/null @@ -1,234 +0,0 @@ -prepare("SELECT id, artist, pic FROM users WHERE email = :email"); -$stmt1->bindValue(':email', $email1); -$result1 = $stmt1->execute(); -$row1 = $result1->fetchArray(); -$pic1 = $row1['pic']; -$artist1 = $row1['artist']; -$user_id1 = $row1['id']; - -// Count the number of followers -$stmt1 = $db1->prepare("SELECT COUNT(*) AS num_followers FROM following WHERE following_email = :email"); -$stmt1->bindValue(':email', $email1); -$result1 = $stmt1->execute(); -$row1 = $result1->fetchArray(); -$num_followers1 = $row1['num_followers']; - -// Count the number of following -$stmt1 = $db1->prepare("SELECT COUNT(*) AS num_following FROM following WHERE follower_email = :email"); -$stmt1->bindValue(':email', $email1); -$result1 = $stmt1->execute(); -$row1 = $result1->fetchArray(); -$num_following1 = $row1['num_following']; - -// Get all of the images uploaded by the current user -$stmt1 = $db1->prepare("SELECT * FROM images WHERE email = :email ORDER BY id DESC"); -$stmt1->bindValue(':email', $email1); -$result1 = $stmt1->execute(); - -// Count the number of images uploaded by the current user -$count1 = 0; -while ($image1 = $result1->fetchArray()) { - $count1++; -} - -$fav_result1 = $db1->query("SELECT COUNT(*) FROM favorites WHERE email = '{$_SESSION['email']}'"); -$fav_count1 = $fav_result1->fetchArray()[0]; -?> - - - - - \ No newline at end of file