New Pdo
Résolu
gabbermaniac
Messages postés
147
Statut
Membre
-
avion-f16 Messages postés 19182 Date d'inscription Statut Contributeur Dernière intervention -
avion-f16 Messages postés 19182 Date d'inscription Statut Contributeur Dernière intervention -
Bonjour,
Comment faire un appel de ce code
<?php
try
{
$bdd = new PDO('mysql:host=localhost;dbname=test', 'root', '');
}
catch (Exception $e)
{
die('Erreur : ' . $e->getMessage());
}
?>
afin d'éviter de le répéter dans chacune de mes pages le nécessitant
Merci
Comment faire un appel de ce code
<?php
try
{
$bdd = new PDO('mysql:host=localhost;dbname=test', 'root', '');
}
catch (Exception $e)
{
die('Erreur : ' . $e->getMessage());
}
?>
afin d'éviter de le répéter dans chacune de mes pages le nécessitant
Merci
A voir également:
- New Pdo
- Supprimer new tab ✓ - <a href="https://forums.commentcamarche.net/forum/virus-7">Forum Virus</a>
- New cpu installed ftpm/psp nv corrupted or ftpm/psp nv structure changed - <a href="https://forums.commentcamarche.net/forum/bios-184">Forum BIOS</a>
- New-tab-page-third-party - <a href="https://forums.commentcamarche.net/forum/virus-7">Forum Virus</a>
- Youtube supprimer new tab - <a href="https://forums.commentcamarche.net/forum/virus-7">Forum Virus</a>
- Désinstaller New Tab ✓ - <a href="https://forums.commentcamarche.net/forum/securite-412">Forum Sécurité</a>