• Register
Plug-in Tutorial Build an EC-CUBE plug-in

Top Commentators

114

1

EC Mike

SHOGUNSHOGUN

32

2

hrbabu

SAMURAISAMURAI

29

3

Sumant Jha

SAMURAISAMURAI

29

4

justcubed

SAMURAISAMURAI

21

5

Ashok Kafle

SAMURAISAMURAI

21

6

shahith

SAMURAISAMURAI

14

7

Jeemusu

KABUKIKABUKI

14

8

Yangsin

KABUKIKABUKI

9

9

Zaw Hlaing Bwar

GEISYAGEISYA

8

10

Fei Liu

GEISYAGEISYA

Ranking Key

  • FUJISANFUJISAN1,000+ posts
  • SAKURASAKURA500+ posts
  • SHOGUNSHOGUN100+ posts
  • NINJYANINJYA50+ posts
  • SAMURAISAMURAI20+ posts
  • KABUKIKABUKI10+ posts
  • GEISYAGEISYALess than 10 posts

how to connect with ec cube db from core php?

0 votes

I want to connect the ec cube project db from core php. I tried this but the connection is not established.

$conn_string = "host=localhost port=5432 dbname=dbname user=dbusrname password=XXXXXX";

try {

$db = pg_pconnect($conn_string)or die("cannot connect db");

} catch (Exception $e) {
 
echo 'Caught exception: ',  $e->getMessage(), "\n";
 
}
asked 2014-12-11 by divya (310 points) KABUKIKABUKI

1 Answer

+1 vote
This is likely an error with your database credentials. Double check and make sure you're using the same credentials that are defined in data/config/config.php
answered 2014-12-23 by justcubed (1,120 points) SAMURAISAMURAI
...