Page not shown when I try to connect to postgres

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
elbomberotorero
Forum Newbie
Posts: 1
Joined: Thu Dec 02, 2004 3:18 am

Page not shown when I try to connect to postgres

Post by elbomberotorero »

Hello,

this is the problem, I have a Linux server with postgres, php with the postgres module and apache. When I make I page which incluedes some querys to the database, the page doesn't show, even if I write only one "echo" and one pg_connect (I mean, only one file with theses two lines inside the <body>).

I also have phpPgAdmin installed and I can access the database without any problems as well as if I only write in one file one "echo" without any database connection, it works properly.

Thanks in advance.
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Give us some code samples to help you out. If you do a view source of the blank page I would guess you get simply <html></hml> which means you have a php error in your code.

Always give us as precise information (not 1000 lines of code) to help us help you.
Post Reply