From 423a77b93d8d9da7a45c39a6953370ab3f54c576 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 7 Jan 2023 20:06:19 +0100 Subject: [PATCH] pg test --- proj/paper/index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proj/paper/index.php b/proj/paper/index.php index 9aeeaf9..02584af 100644 --- a/proj/paper/index.php +++ b/proj/paper/index.php @@ -17,8 +17,10 @@ if (!$db) { } // Execute a query -$result = pg_query($db, "SELECT * FROM testab;"); +$result = pg_query($db, "SELECT * FROM *"); +echo $result; +/* if (!$result) { // query failed echo "Error: Query failed\n"; @@ -28,6 +30,7 @@ if (!$result) { echo "Name: $row[0]\n"; } } +*/ // close the connection pg_close($db);