Why is an intarray operator not available from PHP?
PostgreSQL version 14
GET doesnt retrieve the id from URL
I´m trying to capture the value of id by using the URL, but always while printing tha array for debug its null
How to modify a PHP class to accept PgSqlResult as an attribute
I need to find a way (if possible) to make a PHP class accept a PgSqlResult object as an attribute. PHP 8.1+ has migrated the pgsql result resource to the PgSQLResult instance. In prior versions of PHP I could set the attribute like this:
Select and update multiple tables with loop
I need to run a select which may have multiple rows, iterate through the rows and update two tables based on the select. I can’t get it working properly. The first 2 statements work fine, the third does nothing, the last one works. Variables and arrays echo OK
PHP and Postgresql : consecutive insert
I have two tables related by foreign key.
How do I connect PostgreSQL database to a website using PHP PDO
I try to connect my PostgreSQL database to my website using PHP PDO, here my php code file(connnect.php):
is there a way to get the last query sent using from PHP pg_query_params ? ( in order to debug and see if the text sent was correct )
I use the function pg_query_params (or pg_query).
For debugging purposes I would like to be able to get the lastly sent query (eventually having parameters replaced inside).
Is there a call for that ?
Connection to postresql db from php
I have a php project in which I use postgresql and XAMPP.
The project itself is very small and it’s layout looks like this:
Checking if primary key value of a table is being referenced across other schemas
I have 1 database with 3 schemas,
one of the table from the schemas is primary_table (sample)
the primary table has a column primary_id (sample)