pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: dr_sad(surguttel) <dr_sad@surguttel.ru>
To: pgsql-php@postgresql.org
Subject: Help, plz...
Date: Wed, 4 Sep 2002 16:09:09 +0600
Message-ID: <171398422475.20020904160909@surguttel.ru> (raw)

use:
Linux SuSE 8.0 Pro
PostgreSQL 7.2
PHP 4.2.2
Apache 2.0.39

All posible deb messages in php.ini are enabled, but follow code:
-------------------------------------------------------------------------------
<html>
    <head>
        <title>PostgreSQL PHP Test</title>
    </head>
    <body>
        <table>
            <?
                printf("BEGIN<br>");
                require_once('DB.php');
                $userid='postgres';
                $password='gecnzr';
                $dbhost='dbserv';
                $database='ll';

                $db = DB::connect("pgsql://$userid:$password@$dbhost/$database");
                if ( DB::iserror( $db ))
                    {
                        die("DB.connect " . $db->getMessage());
                    }

                $sql = "select * from agreements";
                $q = $db->query( $sql );
                if ( DB::iserror( $q ))
                    {
                        die("Query  " . $q->getMessage());
                    }

                while ( $row = $q->fetchRow() )
                    {
                        ?>
                        <tr><td><?=$row[0] ?> </td>
                            <td><?=$row[1] ?> </td>
                            <td><?=$row[2] ?> </td>
                            <td><?=$row[3] ?> </td>
                        </tr>
                        <?
                    }
                printf("END.<br>");
            ?>
        </table>
    </body>
</html>
-------------------------------------------------------------------------------
return follow html:
------------------------------
<html>
    <head>
        <title>PostgreSQL PHP Test</title>
    </head>
    <body>
        <table>
            BEGIN<br>
------------------------------

can anybody help me? I don't see any error messages both apache and
php logs... :( If I change sitax of command, of course i see error
messages... Heh...

-- 
respect, Andrey.




view thread (3+ messages)  latest in thread

Message-ID: <171398422475.20020904160909@surguttel.ru>
Permalink:  ../171398422475.20020904160909@surguttel.ru/
Also on:    postgresql.org/message-id/171398422475.20020904160909@surguttel.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: dr_sad@surguttel.ru
  Subject: Re: Help, plz...
  In-Reply-To: <171398422475.20020904160909@surguttel.ru>
  References: <171398422475.20020904160909@surguttel.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox