Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mauricehandwerker/mo_php-glossar-system


https://github.com/mauricehandwerker/mo_php-glossar-system

css css3 glossary html html5 mysql pdo pgsql php system

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

        

# MO_PHP-Glossar-System
With the MO_PHP-Glossar-System you have a simple list of data that is sorted by alphabet.
The MO_PHP-Glossar-System has only the minimum of CSS embeded.

The MO_PHP-Glossar-System uses the Apache 2.0 License

## About MO_PHP-Glossar-System
### SQL Server
The MO_PHP-Glossar-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-Glossar-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 `pgsql` to the driver of your needs.