Advertisement
yed

config.php

yed
Jun 1st, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. <?php
  2. session_start();
  3. $host = "localhost";
  4. $user = "root";
  5. $password = "";
  6. $db = "quo";
  7.  
  8. $connect = mysql_connect($host, $user, $password);
  9.  
  10. // Производим попытку подключения к серверу MySQL:
  11. if (!$connect)
  12. {
  13. echo "<h2>MySQL Error!</h2>";
  14. exit();
  15. }
  16.  
  17. // Выбираем базу данных:
  18. mysql_select_db($db);
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement