I have been looking for a mistake in my php and mysql for the past 5 hours. I have no clue what I have done wrong or if there is just a problem with my mamp. I think it may be a problem with my mamp. This is where I believe the problem would be taking place. Basically my goal with all of this was to make so when I click submit it displays the username and password that the user entered in the two fields. Thanks.
site/core/init.php
<?php
session_start();
error_reporting(0);
require 'database/connect.php';
require 'functions/users.php';
$errors = array();
?>
site/login
<?php
include 'core/init.php';
if(empty($_post) === false) {
$username = $_post['username'];
$password = $_post['password'];
echo $username, ' ', $password;
}
?>
site/core/database/users.php
NOTHING HERE YET
site/includes/widgets/logins
        <aside>         
            <div class = "rightsidebar">
                <h2>Log in/Register</h2>
                <form action = "login.php" method = "post">
                    <ul id = ".login">
                        <li>
                            Username:<br>
                            <input type = "text" name = "username">
                        </li>
                        <li>
                            Password:<br>
                            <input type = "password" name = "password">
                        </li>
                        <li>
                            <input type = "submit" value = "Log In">
                        </li>                                                       
                        <li>
                            <a href = "register.php"><p>Register</p></a>
                        </li>                       
                    </ul>
                </form>
            </div>
        </aside>
site/core/database/connect.php
  <?php
  mysql_connect('localhost', 'root', 'root');
  mysql_select_db('lr');
  ?>
 
    