Hi..
I'm trying to use pg_affected_row from php manual but it will return no result.
Whats wrong?
$conn = pg_connect("dbname=main user=pgsql");
$result = pg_query ($conn, "INSERT INTO student VALUES ('myra')");
$cmdtuples = pg_affected_rows ($result);
echo $cmdtuples . " tuples are affected.";
Please help.