Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- server with default setting (user 'root' with no password) */
- define('DB_SERVER', 'localhost');
- define('DB_USERNAME', 'root');
- define('DB_PASSWORD', '');
- define('DB_NAME', 'name');
- $link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);
- // Check connection
- if($link === false){
- die("ERROR: Could not connect. " . mysqli_connect_error());
- }
- ?>`
- <?php
- define('__ROOT__', dirname(dirname(__FILE__)));
- require_once(__ROOT__.'/config.php');
- class Common {
- }
- ?>
Add Comment
Please, Sign In to add comment