Hello (sorry for the imperfect english but i'm italian)
I'm studying a PHP manual (Professional PHP6 from wrox press) that include only PostgreSQL connection, i'm new from php world and i've some problem with these connection with PostgreSQL, i try this code:
$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 a 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? And if is possible, what can i do for best configuring php for postgresql? Thanks a lot.
p.s.: Nobody in other forums aswer to me.. please.. help me