$dbservername = "localhost"; $dbusername = "postgres"; $dbname = "asistencia"; $dbpassword = "123456"; $puerto = "5432"; $con=pg_connect("host=localhost, dbname=asistencia, user=postgres, $dbname, $dbpassword");
I have previously connected to a database using xampp and mysql, but this time it is especially problematic, I tried to approach the connection in several ways and I can not make the connection, with the connection above I only got:
pg_connect(): Unable to connect to PostgreSQL server: missing "=" after "assistance," in connection info string in
/var/www/html/libreta/conexion.phpon line 14
Why is it missing a
= after assistance? I do not see the meaning, try placing the port after assistance, but I get the same error.
- Does the order in which I place the data within the parentheses of
- I see that now a port is needed to make the connection, how do I make sure exactly what data do I need and what are the data of the machine where I am working?
Many doubts, I keep investigating, but I just can not make it work. I'm using pgAdmin III .