Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $servername = "1.2.3.4";//local ip of the system where mysqldb is located
- $username = "root";
- $password = "password";
- $dbname = "ebizData";
- $logVar = "A";
- //$errorPath = "/home/mukundUBU/Documents/phperror/";
- $errorPath = "/home/mukund/Documents/phperror/";
- // Create connection
- $conn = new mysqli($servername, $username, $password, $dbname);
- // Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- else{
- // echo 'S';
- }
Add Comment
Please, Sign In to add comment