I tried to do it that way but it gives meeror
$consulta="Select * from usuario where nickname='$usuario' and pass='$pass2'";
$resultado=mysqli_query($conexion,$consulta);
$filas=mysqli_num_rows($resultado);
$row=mysqli_fetch_array($resultado);
$_SESSION["foto"] = $row["foto_perfil"];
$imagen = $_FILES['imagen']['name'];
$ruta = "../subidos/" . $_FILES['imagen']['name'];
$resultado = @move_uploaded_file($_FILES["imagen"]["tmp_name"], $ruta);
The problem is that in it
src
you are pointing only to the name of the image, you should put the onepath
where you store the image, looking like this: