Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbName ="database";
- $user = "user";
- $pass = "password";
- $host = "localhost";
- $db = new mysqli("$host", "$user", "$pass", "$dbName");
- if (mysqli_connect_errno()>0)
- {
- die("Failed to connect to MySQL: ");
- }
- $site="http://example.com";
- ?>
Add Comment
Please, Sign In to add comment