- <?php
- $dbhost='iocalhost';
- $dbuser='root';
- $dbpass='rootroot';
- //create connection
- $conn=mysqli_connect($dbhost,$dbuser,$dbpass);
- //chreck connection
- if($conn->connect_error){
- die("connection failed:".$conn->connect_error);
- }
- else
- echo"connected successfully";
- ?>