Hello (sorry for the english but i'm italian)
I've some problem with the connection with a database of PostgreSQL because i don't know the correct syntax, i try this code:
$db = pg_pconnect("host=localhost port=5432 dbname=postgres user=postgres password=pass");
$sql = 'CREATE TABLE "widget" (
"widgetid" SERIAL PRIMARY KEY NOT NULL,
"name" varchar(255) NOT NULL,
pg_query($db, $sql) or die ("unable to create table");
The result is an HTTP Error 500, php and apache are correctly configured, i can try all the php functions, but i don't know the correct configuration php-postgresql. With a phpinfo i see a field named "mysqlnd", but i've only install postgresql and never mysql or others.. can you help me please? Thanks a lot.