zkt24/z2/database.php

9 lines
230 B
PHP
Raw Permalink Normal View History

2024-04-25 16:35:23 +00:00
<?php
function conectarDB(){
$host = 'mysql-service';
//$host = 'mysql-service.z2.svc.cluster.local';
$db = mysqli_connect($host,'root','password','notas');
//$db->set_charset('utf8')
return $db;
}