https://github.com/owusu-desmond/login-register-system
A user login and register system build with PHP
https://github.com/owusu-desmond/login-register-system
apache database mysql php sql
Last synced: 10 months ago
JSON representation
A user login and register system build with PHP
- Host: GitHub
- URL: https://github.com/owusu-desmond/login-register-system
- Owner: Owusu-Desmond
- Created: 2022-03-06T00:11:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-14T16:47:25.000Z (over 4 years ago)
- Last Synced: 2025-07-14T15:13:19.390Z (11 months ago)
- Topics: apache, database, mysql, php, sql
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readMe.md
Awesome Lists containing this project
README
# Login and Register system
## Installation
Install xammp and mysql on your computer.
Run the SQL syntax `CREATA DATABASE users;` in your mysql terminal to create a database.
Also run the above SQL to create a table call *logins*.
```
use users;
CREATE TABLE `logins` (
id int(10) NOT NULL,
Username varchar(50) NOT NULL,
`Email` varchar(50) NOT NULL,
`Password` varchar(50) NOT NULL
);
```
Update the following `config/config.php` file with your right database information
```
define("DB_HOST","YOUR DATABASE HOSTNAME HERE");
define("DB_USER","YOUR DATABASE USERNAME HERE");
define("DB_PASS","YOUR DATABASE PASSWORD HERE");
define("DB_NAME","YOUR DATABASE NAME HERE");
//example
define("DB_HOST", "localhost");
define("DB_USER", "root");
define("DB_PASS", "Des@360");
define("DB_NAME", "users");