tags:

views:

43

answers:

1

I am new to PostgreSQL, until now I have used MySQL, so when I wanted to see an error from a query sent from PHP I would use;

mysql_query("....") or die (mysql_error());

is there a similar function in PostgreSQL as it seems I cannot find it.

+3  A: 

php manual...

http://pl.php.net/manual/en/function.pg-last-error.php

Adrian Serafin
thanx, just found that one.
Adnan