gest366/modules/import_v1/config_fonte.php

17 lines
373 B
PHP
Raw Permalink Normal View History

2021-02-24 20:40:04 +00:00
<?php
function getdb(){
$servername_fonte = "localhost";
$username_fonte = "root";
$password_fonte = "";
$db_fonte = "nome_database";
try {
$conn_fonte = mysqli_connect($servername_fonte, $username_fonte, $password_fonte, $db_fonte);
}
catch(exception $e)
{
echo "Connection fallita: " . $e->getMessage();
}
return $conn_fonte;
}
?>