Skip to content

Tag: postgresql

PHP Insert into PostgreSQL

So it’s probably a really stupid/basic question, but i have this simple PHP function (which works) and inserts data into a PostgreSQL DB. My issue is when it encounters specific data; function …

Insert into DB with PHP and Postgresql

i don’t understand why i can’t insert into DB. I have create a DB with this table: prenotazione (id,nome_rich,cognome_rich,email_rich,oggetto_rich) interni (id,nome_int,cognome_int,email_int) esterni (id,nome_est,cognome_est,email_est) this is my index.php And this is the input.php that i used to …

pgsql extension is not loading

I am trying to use pgsql extension on Windows 10 64-bit (WAPP). I have: restarted Apache uncommented all postgresql extensions in php.ini used LoadFile to load pgsql.dll moved pgsql.dll to Apache bin (I tried both dll from php folder and from postgresql) But still no result. pgsql is visible only in php.exe -…

heroku local does not find pdo_postgres driver

I am trying to use heroku local on mac to run a Symfony project. But unfortunately it does not find the postgresql driver… which is found when I run php app/console server:run Here is the resulting output. How can I solve this? Answer Did you see these ? http://www.somacon.com/p520.php http://www.unixme…

Import CSV file to Postgre

I’m writing some PHP code to import a CSV file to a Postgre DB, and I’m getting the error below. Can you help me? Warning: pg_end_copy(): Query failed: ERROR: literal newline found in data HINT: Use “n” to represent newline. CONTEXT: COPY t_translation, line 2 in C:xampphtdocsimporting…

Filter by date today Postgres and PHP

Currently new to Postgres and php Need help on getting current date total of trees to show I just need to count current trees on current date but can’t seem to make it work. Answer I don’t know if I understand what is the problem, but since you say “current date” I guess you are just m…