Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $host = ""
- $user = ""
- $pass = ""
- $db = ""
- $con = mysqli_connect($host,$user,$pass,$db);//Initiate Connection
- // Check connection
- if (mysqli_connect_errno())
- {
- //Log any errors
- $log = "Failed to connect to MySQL: " . mysqli_connect_error();
- file_put_contents('./log_'.date("j.n.Y G:i").'.txt', $log);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement