pg test
This commit is contained in:
parent
e06f6e57a8
commit
423a77b93d
|
@ -17,8 +17,10 @@ if (!$db) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Execute a query
|
// Execute a query
|
||||||
$result = pg_query($db, "SELECT * FROM testab;");
|
$result = pg_query($db, "SELECT * FROM *");
|
||||||
|
|
||||||
|
echo $result;
|
||||||
|
/*
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
// query failed
|
// query failed
|
||||||
echo "Error: Query failed\n";
|
echo "Error: Query failed\n";
|
||||||
|
@ -28,6 +30,7 @@ if (!$result) {
|
||||||
echo "Name: $row[0]\n";
|
echo "Name: $row[0]\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// close the connection
|
// close the connection
|
||||||
pg_close($db);
|
pg_close($db);
|
||||||
|
|
Loading…
Reference in New Issue