TAS-ALFA/settings/db_connect.php
2018-11-04 13:21:36 +01:00

13 lines
392 B
PHP

<?php
function load($zmienna)
{
if (!isset($_GET[$variable]) || $_GET[$variable]=="")
die( "Error! Variable not found: ".$variable ); // Variable not found
return $_GET[$variable];
}
$mysqli = new mysqli("localhost", "root", "", "bloggero");
if (mysqli_connect_errno()) die( "Error: ".mysqli_connect_error() );
mysqli_set_charset( $mysqli, 'utf8');
?>