I have database name "TestDB" and under that I have table called "User". Above TestDB database and User table have been created in both mysql and postgres.
I have written the following code. it is working for mysql & not working for postgres.
/* The below code is show the output as array with currentuser key value property / (this is if we execute directly @ postgres prompt it will give the current user query result/ not the actual table located inside the Testdb */
php code
include('adodb/adodb.inc.php');
$db = ADONewConnection("mysql"); # eg 'mysql' or 'postgres'
$db->debug = true;
$db->Connect(localhost, "mysql", "mysql123","TestDB");
$rs = $db->Execute('select * from User');
print "<pre>";
print_r($rs->GetRows());
print "</pre>";
$db1 = ADONewConnection("postgres"); # eg 'mysql' or 'postgres'
$db1->debug = true;
$db->Connect(localhost, "postgres", "postgres123","TestDB");
$rs = $db->Execute('select * from User');
print "<pre>";
print_r($rs->GetRows());
print "</pre>";
Please suggest me what to do this.