Skip to content

Instantly share code, notes, and snippets.

View ConectarDB.php
<?php
function conectar($nameDB = '', $userDB = '', $passDB = '') {
if ($nameDB !== ''|| $userDB !== ''|| $passDB !== '') {
try {
$link = new PDO (
'mysql:host=localhost;
You can’t perform that action at this time.