This repository has been archived on 2020-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
ibz/web/1_sem/aufgaben_tag6/db.php

11 lines
337 B
PHP

<?php
// Enter your Host, username, password, database below.
// I left password empty because i do not set password on localhost .
$con = mysqli_connect("localhost","school_db_user","password","schooldb","3306");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>