12345678910111213141516 |
- <!--Database connection, configured for MariaDB
- To avoid relative paths, include using the following method:
- $root = $_SERVER['DOCUMENT_ROOT'];
- include($root . "/config.php");//loads database stuff
- After the include, the database connection will be available at $db
- -->
- <?php
- define('DB_SERVER', 'localhost:3306');
- define('DB_USERNAME', 'root');
- define('DB_PASSWORD', 'admin');
- define('DB_DATABASE', 'noodle');
- $db = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE);
- ?>
|