This commit is contained in:
ed barz 2023-01-07 20:06:19 +01:00
parent e06f6e57a8
commit 423a77b93d
1 changed files with 4 additions and 1 deletions

View File

@ -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);