1 pièce(s) jointe(s)
Connexion postgres en localhost
Bonjour :P
J'ai installé postgres sur mon PC ("Localhost:5432")
Et quand je veux me connecté via PHP
Code:
1 2 3 4 5 6 7 8
|
$dbconn = pg_connect("user=postgres password=MyPassword port=5432 dbname=MyDatabase host=localhost")
or die('Connexion impossible : ' . pg_last_error());
$req= "SELECT * FROM USERCON";
$result=pg_query($dbconn,$req)
or die('Resultat-> : ' . pg_last_error()); |
j'ai une message erreur que la table n'existe pas
Citation:
Resultat-> : ERREUR: la relation « usercon » n'existe pas LINE 1: SELECT * FROM USERCON ^
Pièce jointe 163684
je pense que $dbconn fonctionne car quand le change l'user ou password il affiche Connexion impossible.
Je début en PHP et PostgreSQL merci pour votre soutient. :roll:
David @+