PROJET-WEB_STRI1A/WEB/connectionBD.php

7 lines
253 B
PHP
Raw Normal View History

<?php
$host = "localhost";
$dbname = "projet";
$user = "utilisateur";
$pass = "-stri-";
$db = pg_connect("host=$host port=5432 dbname=$dbname user=$user password=$pass") or die("Erreur lors de la connexion à la base de données.");