Skip to content

Instantly share code, notes, and snippets.

<?php
function conectar($nameDB = '', $userDB = '', $passDB = '') {
if ($nameDB !== ''|| $userDB !== ''|| $passDB !== '') {
try {
$link = new PDO (
'mysql:host=localhost;