here i am trying to insert a record as well as retrive last inserted sequence id but didn't get any success can anybody help me , guide me that how oracle works with php ?
$query = 'INSERT INTO hist_news (id,headline,reportedon,reportedby,loc,story,more,helperjson,refjson,createdt,createdby) VALUES(id.nextval, :headline, :reportedon, :reportedby , :loc , :story , :more , :helper , :ref , sysdate , :createdby) return id.nextval';
$this->stmt = oci_parse($this->oci,$query);
oci_bind_by_name($this->stmt,':headline',$headline);
oci_bind_by_name($this->stmt,':reportedon',$reportedon);
oci_bind_by_name($this->stmt,':reportedby',$reportedby);
oci_bind_by_name($this->stmt,':loc',$loc);
oci_bind_by_name($this->stmt,':story',$story);
oci_bind_by_name($this->stmt,':more',$more);
oci_bind_by_name($this->stmt,':helper',$helperjson);
oci_bind_by_name($this->stmt,':ref',$refjson);
if($re = oci_execute($this->stmt)){
return $re;
} else {
return false;
}