Advertisement
Guest User

Untitled

a guest
Aug 8th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <?php
  2. // settings
  3. $host = '***';
  4. $user = '***';
  5. $password = '***';
  6. $db = '***';
  7. // connection
  8. $con = mysqli_connect($***,$***,$***,$***);
  9. // check connection
  10. if (mysqli_connect_errno()) {
  11. echo "Connect error";
  12. }
  13. // charset
  14. mysqli_query($con, "SET NAMES UTF8");
  15. // time zone
  16. mysqli_query($con, "SET time_zone = '+04:00'");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement