How to get the value of the column 'ProfilePicture' for the current user (which is stored in a session) from a database and save it into a variable?
Here is an example of a possible structure for the query:
if($email="iahmedwael@gmail.com" show 'ProfilePicture' value for that username) //declare a variable to save the value of ProfilePicture
<?php
$posted = true;
if (isset($_REQUEST['attempt'])) {
    $link = mysqli_connect("localhost", "root", "", 'new1') or die('cant connect to database');
    $email = mysqli_escape_string($link, $_POST['email']);
    $password = mysqli_escape_string($link, $_POST['Password']);
    $query = mysqli_query($link, " SELECT * 
                     FROM 360tery
                     WHERE Email='$email'
                     OR Username= '$email'
                     AND Password='$password' "
    ) or die(mysql_error());
    $total = mysqli_num_rows($query);
    if ($total > 0) {
        session_start();
        $_SESSION['email'] = $email;
        header('location: /html/updatedtimeline.html');
    } else {
        echo "<script type='text/javascript'>alert('Wrong username or Password!'); window.location.href='../html/mainpage.html';</script>";
    }
}

 
     
    