Skip site navigation (1) Skip section navigation (2)

Re: Postgres and Web access

From: "Alan Nilsson" <anilsson(at)apple(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Postgres and Web access
Date: 2000-11-10 17:23:36
Message-ID: 04fb01c04b3a$f59f0640$ (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
You can use the PHP scripting language that embeds directly into you web
pages.  It is very easy to use & quite powerful.  I am new to all of this
and I was just blown away how easy it was to create a dynamically loaded
database driven page.

Check it out at
The online manual provides step by step instuctions to the installation and
integration with Apache.

Also check out for additional tutorial info

have fun!

Alan Nilsson
How hard can it be?
----- Original Message -----
From: "Greg Thomas" <gregt(at)WestgateSoftware(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Sent: Thursday, November 09, 2000 2:47 PM
Subject: [NOVICE] Postgres and Web access

> OK.  I'm a bit overwhelmed over I think.
> I'm going to start out by saying I dont know Linux very well at all.
> Basicly, what I'd like to do is access the database from a web page.  The
> person hosting the database right now doesn't give me the control I need
> manipulate that database, and takes a while to do that changes himself, so
> I've decided to host it all myself.  (the database and web).
> I got Redhat 7.0 installed the other day.  In the installation, it had the
> options for postges, etc.  I selected all the options to get that
> I also installed apache web server.  At this point, I'm not absolutly
> positive I have the JDBC stuff for postgres installed, even though I did
> select the file in RH installation.   How can I test this?
> This is where I'm a bit lost.   I got the postmaster running and can
> modify, etc the database fine.  What do I need to do to connect the
> to the web server?  I didn't see much on apache in the documents for
> PostreSQL, so if theres a better recomended web server, I'd be happy to
> that.  As I said, I'm just lost at this point.  The thing that'd probably
> help me the most would be just a list and order of things to install from
> scratch.  I kinda have an idea of what needs to be done, but no idea what
> order to do it in, or what products to use.
> (i.e.  1- Install Linux, 2- Install apache web server, etc...)
> Thank you very much for your time and patients.
> Here is a sample of the jsp code I'm using for page that works from the
> original server (made everything generic to save space...) to maybe give
> a better idea.
> <html>
> <head>
> <title>Test</title>
> <%@ page import="java.util.*,java.sql.*" %>
> </head>
> <body>
> <%
> Connection c =
> r","password");
> Statement s = c.createStatement();
> ResultSet resultset_name = s.executeQuery("select * from table;");
> %>
> Web Content
> <table>
> <%
> while({
> %>
> <tr><td>
> <%=resultset_name.getString("dababase_field")%>
> </td><tr>
> <%
> }
> s.close();
> rs.close();
> %>
> </table>
> </BODY>
> </HTML>

In response to

pgsql-novice by date

Next:From: VicDate: 2000-11-11 03:31:22
Subject: Pl/Sql Error (may be..... )
Previous:From: Tom LaneDate: 2000-11-10 15:53:08
Subject: Re: Error Messages!?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group