https://github.com/mauricehandwerker/mo_php-login-register-system
MO Login/Register System
https://github.com/mauricehandwerker/mo_php-login-register-system
css html login pdo pdo-php php register sql sytem tool
Last synced: about 2 months ago
JSON representation
MO Login/Register System
- Host: GitHub
- URL: https://github.com/mauricehandwerker/mo_php-login-register-system
- Owner: MauriceHandwerker
- License: apache-2.0
- Created: 2022-05-20T08:44:02.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-30T11:07:13.000Z (about 4 years ago)
- Last Synced: 2025-06-04T00:45:20.161Z (about 1 year ago)
- Topics: css, html, login, pdo, pdo-php, php, register, sql, sytem, tool
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MO_PHP-Login/Register-System
The MO_PHP-Login/Register-System uses the
Apache 2.0 License
## About MO_PHP-Login/Register-System
### SQL Server
The MO_PHP-Login/Register-System is compatiple with :
| driver | Supported Databases |
| ----------- | ----------- |
| PDO_CUBRID | Cubrid |
| PDO_DBLIB | FreeTDS / Microsoft SQL Server / Sybase |
| PDO_FIREBIRD | Firebird |
| PDO_IBM | IBM, DB2 |
| PDO_INFORMIX | IBM / Informix Dynamic Server |
| PDO_MYSQL | MySQL 3.x/4.x/5.x |
| PDO_OCI | Oracle Call Interface |
| PDO_ODBC | ODBC v3 (IBM DB2, unixODBC und win32 ODBC) |
| PDO_PGSQL | PostgreSQL |
| PDO_SQLITE | SQLite 3 und SQLite 2 |
| PDO_SQLSRV | Microsoft SQL Server / SQL Azure |
---
## MO_PHP-Login/Register-System Set-up
### Connect to SQL Server
> connect.php
```php
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch(PDOException $e) {
echo "Error: " . $e->getMessage();
$conn = NULL;
}
?>
```
Change the veriables to your own.
The `$dbname` should stay the same if you are using the `setup.sql`.
### Change SQL driver
> conect.php
```php
9 : $conn = new PDO("pgsql:host=$servername;port=$port;dbname=$dbname", $username, $password);
```
Change the `mysql` to the driver of your needs.