hello.....
i've trouble with my codes... can you help me....
i want to connect my PosgreSQL by PHP and want to insert data into the database but i've got error..
<?php
$db = pg_connect("host=redhat dbname=dbEAMS user=naz password=zan") or die("Connection die!!!!");
$query = "INSERT INTO tfeedback (idfeedback, phone, email, problem, typeofprob) values (nextval('tfeedback_idfeedback_seq'), '$phone', '$email', '$problem', '$typeofprob')";
$result = pg_exec($db, $query);
if (!$result) {echo ("ERROR"); exit;}
echo ("done");?>
and this the warning
Warning: PostgreSQL query failed: ERROR: tfeedback_idfeedback is an index relation in /var/www/naz/insert.php on line 12
ERROR
pls help me....
thank you...