Monday, August 3, 2015

Koneksi PHP dengan database PostgreSQL

"(?php 

$link = pg_connect("dbname=db user=usr password=pwd port=5432"); 

  $result = pg_exec($link, "select * from item_master");
  $numrows = pg_numrows($result);
  Echo $numrows;

?)"