Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "localhost"; //replace it with your database server name
- $username = "root"; //replace it with your database username
- $password = ""; //replace it with your database password
- $dbname = "student";
- // Create connection
- $conn = mysqli_connect($servername, $username, $password, $dbname);
- // Check connection
- if (!$conn) {
- echo("Connection failed: " . mysqli_connect_error());
- }
- else {
- echo("Connected ");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement