pg test
This commit is contained in:
parent
71562f2782
commit
1fc502a245
|
@ -19,12 +19,12 @@ if (!$db) {
|
|||
var_dump($db);
|
||||
|
||||
// Execute a query
|
||||
$result = pg_query($db, "INSERT INTO testab (testval) VALUES ('Yolo')");
|
||||
$result = pg_query($db, "SELECT testval FROM testab");
|
||||
|
||||
var_dump($result);
|
||||
//var_dump($result);
|
||||
|
||||
//echo pg_last_error($db);
|
||||
|
||||
echo pg_last_error($db);
|
||||
/*
|
||||
if (!$result) {
|
||||
// query failed
|
||||
echo "Error: Query failed\n";
|
||||
|
@ -34,7 +34,7 @@ if (!$result) {
|
|||
echo "Name: $row[0]\n";
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
// close the connection
|
||||
pg_close($db);
|
||||
|
|
Loading…
Reference in New Issue