pg_connect() error

php India
  • 14 years ago
    In my file i am using two databases.
    if $SQL_USE="true" go to mysql
    if $SQL_USE='false'.

    for $SQL_USE="true" its working good.

    but if $SQL_USE='false'
    it goes to the loop but give eroor at pg_connect()

    else if($SQL_Use == 'false')
        { echo "POSTGRES";
           $conn = pg_connect("host=$PGSQL_Server port=$PGSQL_Port dbname=$PGSQL_Db user=$PGSQL_Login password=$PGSQL_Password") or die('Could not connect: ' . pg_last_error());

    }
    GIVE Error as:
    Fatal error: Call to undefined function: pg_connect() in c:\program files\easyphp1-8\www\includes\session.php on line 184

    if any one konws please help.


















Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Anyone who considers arithmetic methods of producing random digits is, of course, in a state of sin.” - John von Neumann