I'm working on a login. As the base I took PHP-Login because it provides a lot of stuff at forehand. Now I'm getting this error:
Fatal error: Cannot redeclare class Login in C:\xampp\htdocs\includes\classes\class.login.php on line 3
When looking at the first few lines of class.login.php
I don't see any mistakes:
<?php
class Login {
private $db_connection = null;
public $errors = array();
public $messages = array();
public function __construct() {
if (isset($_GET["logout"])) {
$this->doLogout();
}
elseif (isset($_POST["login"])) {
$this->dologinWithPostData();
}
}
If anyone sees the error, please tell me.