Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Connection variables
- $host = "localhost"; //MySQL host name eg. localhost
- $user = "mysliwi"; //MySQL uder. eg. root (if your on localserver)
- $password = "mysliwi"; //MySQL user password (if password is not set for your root user then keep it empty)
- $database = "mysliwi"; //MySQL Database name
- //Connect to MySQL Database
- $con = new mysqli($host, $user, $password, $database);
- //Check connection
- if ($con->connect_error) {
- die("Connection failed: " . $con->connect_error);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement