I think you just need to leave of the ';' charactor ! (Its a statement terminator that psql understands... not part of the SQL dialect itself) e.g in Php : $sqlstr = "INSERT INTO blah VALUES(1,1,1,)"; Cheers Mark > >parser: parse error at >or near ";". When I try to submit the insert via php