Skip to content

Instantly share code, notes, and snippets.

@goldalworming
Created June 26, 2014 04:17
Show Gist options
  • Save goldalworming/4e4391313d9013996f95 to your computer and use it in GitHub Desktop.
Save goldalworming/4e4391313d9013996f95 to your computer and use it in GitHub Desktop.
insert date to oracle php
$objarray['tgl'] = date("Y-m-d",strtotime($arraydata->ACT_TGLENTRY));
$sql="insert into mart_dws_activity (ACT_GPART,ACT_BU_NAME,ACT_ID_ACT,ACT_JNSACT,ACT_PICTELKOM,ACT_TGLENTRY,ACT_RESULT,ACT_TLPRMH,ACT_PICCUST) values ('$gpart', '$bu_name', '$id', '$jns', '$pictelkom', to_date('$tgl','yyyy-mm-dd'), '$result', '$telprmh', '$piccust')";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment