My problem the links is not correct it says "failed to load the resources" in the console.

Both code are not related. And the user.php is asking for connection from inside the dbc folder database.php and myScript.js wants to find user.php where is located inside the view folder.

Image of my current folder file tree:

<http://s38.photobucket.com/user/eloginko/media/folder_zps2d422ae2.png.html>

user.php

```
<?php
include_once('view/../dbc/database.php');

$db = new Connection();
$db = $db->dbConnect();

$email = $_POST['email'];
$pass = $_POST['password'];

    if(!empty($email) && !empty($pass)){
        $st = $db->prepare("SELECT * from user WHERE email=? AND password=?");
        $st->bindParam(1, $email);
        $st->bindParam(2, $pass);
        $st->execute();

        if($st->rowCount() == 1){
            echo "1";
            exit;
        } else {
            echo "Incorrect Email or Password";
        }
    }else{
        echo "Please enter Email and Password";
    }  
?>

```

myScript.js

```
$(document).ready(function() {
 $('div#show:empty').hide();
    $('#login').click(function(){

        var email = $('#lemail').val();
        var password = $('#lpassword').val();   

        $.ajax({
            data: {
             email : email, password : password
            },
            type: "POST",
            url: 'js/../view/user.php',
            success: function(data)
            {
               if (Number(data) == 1)
                    {           
                $(".show-page[data-page=progBar]").trigger("click");
                $('#myModal').modal('hide');
                    }
                else
                    {
                  $('div#show:empty').show();
                  $('#show').html(data);
                    }
            }
        });
        return false;
    });

});

```